Package com.yahoo.prelude.query
Class QueryCanonicalizer
java.lang.Object
com.yahoo.prelude.query.QueryCanonicalizer
Query normalizer and sanity checker.
- Author:
- bratseth
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of the operation performed by this, for use in search chain ordering -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
canonicalize
(Query query) Validates this query and carries out possible operations on this query which simplifies it without changing its semantics.static String
canonicalize
(QueryTree queryTree) Canonicalizes this query, allowing any query tree size
-
Field Details
-
queryCanonicalization
The name of the operation performed by this, for use in search chain ordering- See Also:
-
-
Constructor Details
-
QueryCanonicalizer
public QueryCanonicalizer()
-
-
Method Details
-
canonicalize
Validates this query and carries out possible operations on this query which simplifies it without changing its semantics.- Returns:
- null if the query is valid, an error message if it is invalid
-
canonicalize
Canonicalizes this query, allowing any query tree size- Returns:
- null if the query is valid, an error message if it is invalid
-