Package org.apache.lucene.search
Class ScoreAndDoc
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.ScoreAndDoc
-
final class ScoreAndDoc extends Scorable
Used byBulkScorers that need to pass aScorabletoLeafCollector.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 intdocID()Returns the doc ID that is currently being scored.floatscore()Returns the score of the current document matching the query.-
Methods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore
-
-
-
-
Method Detail
-
docID
public int docID()
Description copied from class:ScorableReturns the doc ID that is currently being scored.
-
-