public class AssertingScorable extends FilterScorable
Scorable.ChildScorablein| Constructor and Description |
|---|
AssertingScorable(Scorable in) |
| Modifier and Type | Method and Description |
|---|---|
float |
score()
Returns the score of the current document matching the query.
|
void |
setMinCompetitiveScore(float minScore)
Optional method: Tell the scorer that its iterator may safely ignore all
documents whose score is less than the given
minScore. |
static Scorable |
unwrap(Scorable in) |
static Scorable |
wrap(Scorable in) |
docID, getChildrenpublic AssertingScorable(Scorable in)
public float score()
throws IOException
Scorablescore in class FilterScorableIOExceptionpublic void setMinCompetitiveScore(float minScore)
throws IOException
ScorableminScore. This is a
no-op by default.
This method may only be called from collectors that use
ScoreMode.TOP_SCORES, and successive calls may only set increasing
values of minScore.setMinCompetitiveScore in class ScorableIOExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.