public QueryType setSyntax(Syntax syntax) {
        this.syntax = syntax;
        return this;
    }
Sets the query syntax used in this query.

@return this for chaining
container-search/src/main/java/com/yahoo/search/query/QueryType.java