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.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA wrapper around aDocIdSetIteratorthat matches the same documents, but introduces false positives that need to be verified viaTwoPhaseIterator.matches(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) booleaninthashCode()rewrite(IndexSearcher indexSearcher) voidvisit(QueryVisitor visitor) Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString
-
Constructor Details
-
RandomApproximationQuery
-
-
Method Details
-
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
-
equals
-
hashCode
public int hashCode() -
toString
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeightin classQuery- Throws:
IOException
-