Package org.apache.lucene.search
Class ScoreDoc
- java.lang.Object
-
- org.apache.lucene.search.ScoreDoc
-
- Direct Known Subclasses:
FieldDoc,FieldValueHitQueue.Entry
public class ScoreDoc extends Object
Holds one hit inTopDocs.
-
-
Field Summary
Fields Modifier and Type Field Description intdocA hit document's number.floatscoreThe score of this document for the query.intshardIndex
-
-
-
Field Detail
-
score
public float score
The score of this document for the query.
-
doc
public int doc
A hit document's number.- See Also:
StoredFields.document(int)
-
shardIndex
public int shardIndex
-
-