- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.ScoreAndDoc
-
final class ScoreAndDoc extends Scorable
Used byBulkScorer
s that need to pass aScorable
toLeafCollector.setScorer(org.apache.lucene.search.Scorable)
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
Scorable.ChildScorable
-
-
Constructor Summary
Constructors Constructor Description ScoreAndDoc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
docID()
Returns the doc ID that is currently being scored.float
score()
Returns the score of the current document matching the query.-
Methods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
-
-
-
Method Detail
-
docID
public int docID()
Description copied from class:Scorable
Returns the doc ID that is currently being scored.
-
-