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.
|
setMinCompetitiveScore, smoothingScore
protected final Scorable in
public FilterScorable(Scorable in)
in
- the scorer to filterpublic float score() throws IOException
Scorable
score
in class Scorable
IOException
public int docID()
Scorable
public Collection<Scorable.ChildScorable> getChildren() throws IOException
Scorable
getChildren
in class Scorable
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.