public class FilterScorable extends Scorable
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.Scorable.ChildScorable| Constructor and Description |
|---|
FilterScorable(Scorable in)
Filter a scorer
|
| Modifier and Type | Method and Description |
|---|---|
int |
docID()
Returns the doc ID that is currently being scored.
|
Collection<Scorable.ChildScorable> |
getChildren()
Returns child sub-scorers positioned on the current document
|
float |
score()
Returns the score of the current document matching the query.
|
setMinCompetitiveScoreprotected final Scorable in
public FilterScorable(Scorable in)
in - the scorer to filterpublic float score()
throws IOException
Scorablescore in class ScorableIOExceptionpublic int docID()
Scorablepublic Collection<Scorable.ChildScorable> getChildren() throws IOException
ScorablegetChildren in class ScorableIOExceptionCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.