@Test
    void testMoreInheritedAnnotations() {
        String yqlQuery = "select * from sources * where " +
                "({ranked: false}(foo contains \"a\" " +
                "and ({ranked: true}(bar contains \"b\" " +
                "or ({ranked: false}(foo contains \"c\" " +
                "and foo contains ({ranked: true}\"d\")))))))";
        QueryTree x = parse(yqlQuery);
        List<IndexedItem> terms = QueryTree.getPositiveTerms(x);
        assertEquals(4, terms.size());
        for (IndexedItem term : terms) {
            switch (term.getIndexedString()) {
                case "a", "c" -> assertFalse(((Item) term).isRanked());
                case "b", "d" -> assertTrue(((Item) term).isRanked());
                default -> fail();
            }
        }
    }
Specification for the conversion of YQL+ expressions to Vespa search queries.

@author Steinar Knutsen
@author Stian Kristoffersen
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java