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
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
-
BlockScoreQueryWrapper
Sole constructor.
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
rewrite
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException - Overrides:
createWeightin classQuery- Throws:
IOException
-