Package org.apache.lucene.search
Class FilterScorable
java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.FilterScorable
Filter a
Scorable
, intercepting methods and optionally changing their return values
The default implementation simply passes all calls to its delegate, with the exception of
Scorable.setMinCompetitiveScore(float)
which defaults to a no-op.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.lucene.search.Scorable
setMinCompetitiveScore, smoothingScore
-
Field Details
-
in
-
-
Constructor Details
-
FilterScorable
Filter a scorer- Parameters:
in
- the scorer to filter
-
-
Method Details
-
score
Description copied from class:Scorable
Returns the score of the current document matching the query.- Specified by:
score
in classScorable
- Throws:
IOException
-
docID
public int docID()Description copied from class:Scorable
Returns the doc ID that is currently being scored. -
getChildren
Description copied from class:Scorable
Returns child sub-scorers positioned on the current document- Overrides:
getChildren
in classScorable
- Throws:
IOException
-