testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] { {true, false},{false, false} });
testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] { { false, false }, { false, false } });
    public void testQueries() throws Exception {        IngridQuery q = parse("fische");        testTerms(q.getTerms(), new String[] { "fische" }, new boolean[][] {{true, false}});        q = parse("fische frsche");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] {{true, false}, {true, false}});        q = parse("fische frsche ort:Halle");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] {{true, false}, {true, false}});        testFields(q.getFields(), new String[] { "ort:Halle" });        q = parse("fische frsche ort:Halle land:germany");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] {{true, false},{true, false}});        testFields(q.getFields(), new String[] { "ort:Halle", "land:germany" });        q = parse("fische OR frsche");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] { {true, false},{false, false} });        q = parse("fische AND frsche");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] { {true, false},{true, false} });        q = parse("(ort:Halle land:germany) fische frsche ");        testTerms(q.getTerms(), new String[] { "fische", "frsche" }, new boolean[][] { {true, false},{true, false} });        assertEquals(1, q.getClauses().length);        testFields(q.getClauses()[0].getFields(), new String[] { "ort:Halle", "land:germany" });    }