Package org.apache.lucene.tests.search
Class BlockScoreQueryWrapper
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.tests.search.BlockScoreQueryWrapper
-
public final class BlockScoreQueryWrapper extends Query
Query wrapper that reduces the size of max-score blocks to more easily detect problems with the max-score logic.
-
-
Constructor Summary
Constructors Constructor Description BlockScoreQueryWrapper(Query query, int blockLength)Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightcreateWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost)booleanequals(Object obj)inthashCode()Queryrewrite(IndexSearcher indexSearcher)StringtoString(String field)voidvisit(QueryVisitor visitor)-
Methods inherited from class org.apache.lucene.search.Query
classHash, rewrite, sameClassAs, toString
-
-
-
-
Constructor Detail
-
BlockScoreQueryWrapper
public BlockScoreQueryWrapper(Query query, int blockLength)
Sole constructor.
-
-
Method Detail
-
rewrite
public Query rewrite(IndexSearcher indexSearcher) throws IOException
- Overrides:
rewritein classQuery- Throws:
IOException
-
visit
public void visit(QueryVisitor visitor)
-
createWeight
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
- Overrides:
createWeightin classQuery- Throws:
IOException
-
-