@Test
    void testBackslash() {
        {
            String queryString = "select * from testtype where title contains \"\\\\\""; // Java escaping * YQL escaping
            QueryTree query = parse(queryString);
            assertEquals("title:\\", query.toString());
        }

        {
            Query query = new Query("search?yql=select%20*%20from%20testtype%20where%20title%20contains%20%22%5C%5C%22");
            new Execution(new Chain<>(new MinimalQueryInserter()), Execution.Context.createContextStub()).search(query);
            assertEquals("title:\\", query.getModel().getQueryTree().toString());
        }
    }
Verifies that we can search for a backslash
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java