Package org.apache.lucene.tests.search
Class RandomApproximationQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.tests.search.RandomApproximationQuery
A
Query
that adds random approximations to its scorers.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateWeight
(IndexSearcher searcher, ScoreMode scoreMode, float boost) boolean
int
hashCode()
rewrite
(IndexReader reader) void
visit
(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
RandomApproximationQuery
-
-
Method Details
-
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
visit
-
equals
-
hashCode
public int hashCode() -
toString
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classQuery
- Throws:
IOException
-