@Test
    void testNoGrammar2() {
        tester.assertParsed("WEAKAND(100) foobar", "-foobar", Query.Type.TOKENIZE);
    }
Shortcut terms are represented as any other terms, but can be rewritten downstream.
The information about added bangs is available from the origin as shown (do not use the weight to find this)
container-search/src/test/java/com/yahoo/prelude/query/parser/test/ParseTestCase.java