@Override
    public String toString() {
        return "query type " + type +
               " [composite: " + composite + ", tokenization: " + tokenization + ", syntax: " + syntax + "]";
    }
Throws IllegalArgumentException if the combination of options set in this are ot supported.
container-search/src/main/java/com/yahoo/search/query/QueryType.java