@Test
    void testTooLargeTermWeights() {
        // This behavior is a bit silly:
        tester.assertParsed("AND a 12345678901234567890", "a!12345678901234567890", Query.Type.ALL);
        // but in light of
        tester.assertParsed("AND a!150 b", "a!b", Query.Type.ALL);
        // which was the behavior when adding handling of too large term
        // weights, it is at least consistent. It should probably be implicit
        // phrases instead.
    }
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