@Test
    void testConnectivityToEquiv() {
        QueryTree parsed = parse("select foo from bar where " +
                                 "title contains ({id: 1, connectivity: {id: 2, weight: 7.0}}'madonna') " +
                                 "and title contains ({id: 2}equiv('saint','angel'))");
        assertEquals("AND title:madonna (EQUIV title:saint title:angel)", parsed.toString());
        AndItem root = (AndItem) parsed.getRoot();
        WordItem first = (WordItem) root.getItem(0);
        EquivItem second = (EquivItem) root.getItem(1);
        assertEquals(first.getConnectedItem(), second);
        assertEquals(first.getConnectivity(), 7.0d, 1E-6);
        assertNull(second.getConnectedItem());
    }
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