public static QueryType from(String typeName) {
        return QueryType.from(Query.Type.getType(typeName));
    }
Throws IllegalArgumentException if the combination of options set in this are ot supported.
container-search/src/main/java/com/yahoo/search/query/QueryType.java