public class AssertingScorable extends FilterScorable
Scorable.ChildScorable
in
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, getChildren
public AssertingScorable(Scorable in)
public float score() throws java.io.IOException
Scorable
score
in class FilterScorable
java.io.IOException
public void setMinCompetitiveScore(float minScore) throws java.io.IOException
Scorable
minScore
. 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 Scorable
java.io.IOException
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.