@Test
    void testWeight() {
        QueryTree parsed = parse("select * from sources * where " +
                                 "weakAnd(field1 contains ({weight: 120}'term1'), " +
                                 "        field1 contains ({weight: 70}'term2'))");
        assertEquals("WEAKAND(100) field1:term1!120 field1:term2!70", parsed.toString());
    }
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