@Test
    void testUrlHostSearchingBothAnchors() {
        // Simple query syntax, for reference
        assertUrlQuery("urlfield.hostname", new Query("?query=urlfield.hostname:%5Egoogle.com&type=all"), true, true, true); // %5E = ^

        // YQL query
        Query yql = new Query();
        yql.properties().set("yql", "select * from sources * where urlfield.hostname contains ({startAnchor: true } uri(\"google.com\"))");
        assertUrlQuery("urlfield.hostname", yql, true, true, true);
    }
Verifies that we can search for a backslash
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java