@Test
    void testInheritedAnnotations() {
        {
            QueryTree x = parse("select * from sources * where ({ranked: false}(foo contains \"a\" and bar contains \"b\")) or foor contains ({ranked: false}\"c\")");
            List<IndexedItem> terms = QueryTree.getPositiveTerms(x);
            assertEquals(3, terms.size());
            for (IndexedItem term : terms) {
                assertFalse(((Item) term).isRanked());
            }
        }
        {
            QueryTree x = parse("select * from sources * where {ranked: false}(foo contains \"a\" and bar contains \"b\")");
            List<IndexedItem> terms = QueryTree.getPositiveTerms(x);
            assertEquals(2, terms.size());
            for (IndexedItem term : terms) {
                assertFalse(((Item) term).isRanked());
            }
        }
    }
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