@Test
    void testQueryTypes() {
        assertParsed("+(AND a b) -c",          "a b -c", type("all"));
        assertParsed("+(OR a b) -c",           "a b -c", type("any"));
        assertParsed("\"a b c\"",              "a b -c", type("phrase"));
        assertParsed("WEAKAND(100) a b c",     "a b -c", type("tokenize"));
        assertParsed("AND a b c",              "a b -c", type("tokenize").setComposite(QueryType.Composite.and));
        assertParsed("+(AND a b) -c",          "a b -c", type("web"));
        assertParsed("+(WEAKAND(100) a b) -c", "a b -c", type("web").setComposite(QueryType.Composite.weakAnd));
        assertParsed("WEAKAND(100) a b c",     "a b -c", type("linguistics"));
        assertParsed("OR a b c",               "a b -c", type("linguistics").setComposite(QueryType.Composite.or));
        assertParsed("OR a b c",               "a b -c", type("weakAnd").setComposite(QueryType.Composite.or).setTokenization(QueryType.Tokenization.linguistics).setSyntax(QueryType.Syntax.none));
        assertParsed("+(WEAKAND(100) a b) -c", "a b -c", type("tokenize").setSyntax(QueryType.Syntax.web));
        assertParsed("AND a b c",              "a b -c", type("web").setSyntax(QueryType.Syntax.none));

        assertFails("Failed parsing query: query type linguistics " +
                    "[composite: weakAnd, tokenization: linguistics, syntax: web] is invalid: " +
                    "Linguistics tokenization can only be combined with syntax none",
                    type("linguistics").setSyntax(QueryType.Syntax.web));

        assertEquals("WEAKAND(100) a b c",
                     new Query(httpEncode("?query=a b -c&model.type=linguistics")).getModel().getQueryTree().toString());
        assertEquals("OR a b c",
                     new Query(httpEncode("?query=a b -c&model.type.composite=or&model.type.tokenization=linguistics&model.type.syntax=none")).getModel().getQueryTree().toString());
        assertEquals(QueryType.from(Query.Type.ALL), new Query(httpEncode("?query=a b -c&model.type=all")).getModel().getQueryType());
        assertEquals(QueryType.from(Query.Type.ALL).getType(), new Query(httpEncode("?query=a b -c&model.type=all")).properties().get("model.type"));
        assertEquals(QueryType.from(Query.Type.ALL).getType(), new Query(httpEncode("?query=a b -c&type=all")).properties().get("model.type"));
        assertEquals(QueryType.Syntax.none, new Query(httpEncode("?query=a b -c&model.type.syntax=none")).properties().get("model.type.syntax"));

        QueryProfileRegistry registry = new QueryProfileRegistry();
        QueryProfile profile = new QueryProfile("default");
        profile.set("query.type", "all", registry);
        registry.register(profile);
        CompiledQueryProfileRegistry cRegistry = registry.compile();
        Query q = new Query(httpEncode("?query=a b -c&model.type=linguistics"), cRegistry.findQueryProfile("default"));
    }
Tests that the value presentation.format.tensors can be set in a query profile.
This is special because 'presentation.format' is a native query profile.
container-search/src/test/java/com/yahoo/search/test/QueryTestCase.java