Package org.apache.lucene.misc.search
Class HumanReadableQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.misc.search.HumanReadableQuery
A simple query wrapper for debug purposes. Behaves like the given query, but when printing to a
string, it will prepend the description parameter to the query output.
-
Constructor Summary
ConstructorDescriptionHumanReadableQuery
(Query in, String description) Create a new HumanReadableQuery -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
int
hashCode()
rewrite
(IndexSearcher indexSearcher) void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
Constructor Details
-
HumanReadableQuery
Create a new HumanReadableQuery- Parameters:
in
- the query to wrapdescription
- a human-readable description, used in toString()
-
-
Method Details
-
getWrappedQuery
- Returns:
- the wrapped Query
-
getDescription
- Returns:
- the query description
-
rewrite
-
toString
-
visit
-
equals
-
createWeight
- Overrides:
createWeight
in classQuery
-
hashCode
public int hashCode()
-