@Test
    void testLinguisticsMode() {
        // Default for comparison
        Item root = parse("select foo from bar where userInput(\"yoni jo dima\")").getRoot();
        assertTrue(root instanceof WeakAndItem);
        assertEquals("WEAKAND(100) default:yoni default:jo default:dima", root.toString());
        for (Item child : ((WeakAndItem)root).items()) {
            assertTrue(child instanceof WordItem);
            WordItem childWord = (WordItem)child;
            assertFalse(childWord.isStemmed());
            assertTrue(childWord.isNormalizable());
        }

        root = parse("select foo from bar where {grammar:\"linguistics\"}userInput(\"yoni jo dima\")").getRoot();
        assertTrue(root instanceof WeakAndItem);
        assertEquals("WEAKAND(100) default:yoni default:jo default:dima", root.toString());
        for (Item child : ((WeakAndItem)root).items()) {
            assertTrue(child instanceof WordItem);
            WordItem childWord = (WordItem)child;
            assertTrue(childWord.isStemmed());
            assertFalse(childWord.isNormalizable());
        }
    }
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