Package org.apache.lucene.tests.search
Class BlockScoreQueryWrapper
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.tests.search.BlockScoreQueryWrapper
Query wrapper that reduces the size of max-score blocks to more easily detect problems with the
max-score logic.
-
Constructor Summary
-
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
-
BlockScoreQueryWrapper
Sole constructor.
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
rewrite
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
visit
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeight
in classQuery
- Throws:
IOException
-