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