Package org.apache.lucene.tests.search
Class AssertingScorable
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.FilterScorable
-
- org.apache.lucene.tests.search.AssertingScorable
-
public class AssertingScorable extends FilterScorable
Wraps another Scorable and asserts that scores are reasonable and only called when positioned
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.search.FilterScorable
in
-
-
Constructor Summary
Constructors Constructor Description AssertingScorable(Scorable in)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatscore()voidsetMinCompetitiveScore(float minScore)static Scorableunwrap(Scorable in)static Scorablewrap(Scorable in)-
Methods inherited from class org.apache.lucene.search.FilterScorable
docID, getChildren
-
Methods inherited from class org.apache.lucene.search.Scorable
smoothingScore
-
-
-
-
Constructor Detail
-
AssertingScorable
public AssertingScorable(Scorable in)
-
-
Method Detail
-
score
public float score() throws IOException- Overrides:
scorein classFilterScorable- Throws:
IOException
-
setMinCompetitiveScore
public void setMinCompetitiveScore(float minScore) throws IOException- Overrides:
setMinCompetitiveScorein classScorable- Throws:
IOException
-
-