public class ScoreDoc
extends java.lang.Object
implements java.io.Serializable
TopDocs.| Modifier and Type | Field and Description |
|---|---|
int |
doc
Expert: A hit document's number.
|
float |
score
The score of this document for the query.
|
int |
shardIndex
|
| Constructor and Description |
|---|
ScoreDoc(int doc,
float score)
Constructs a ScoreDoc.
|
ScoreDoc(int doc,
float score,
int shardIndex)
Constructs a ScoreDoc.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public float score
public int doc
Searcher.doc(int)public int shardIndex