public static Type getType(String typeString) {
            for (Type type : Type.values())
                if (type.stringValue.equals(typeString))
                    return type;
            throw new IllegalArgumentException("No query type '" + typeString + "'");
        }
Converts a type argument value into a query type
container-search/src/main/java/com/yahoo/search/Query.java