|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.ScoreDoc
public class ScoreDoc
Holds one hit in TopDocs
.
Field Summary | |
---|---|
int |
doc
Expert: A hit document's number. |
float |
score
The score of this document for the query. |
int |
shardIndex
Only set by TopDocs.merge(org.apache.lucene.search.Sort, int, org.apache.lucene.search.TopDocs[]) |
Constructor Summary | |
---|---|
ScoreDoc(int doc,
float score)
Constructs a ScoreDoc. |
|
ScoreDoc(int doc,
float score,
int shardIndex)
Constructs a ScoreDoc. |
Method Summary | |
---|---|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float score
public int doc
Searcher.doc(int)
public int shardIndex
TopDocs.merge(org.apache.lucene.search.Sort, int, org.apache.lucene.search.TopDocs[])
Constructor Detail |
---|
public ScoreDoc(int doc, float score)
public ScoreDoc(int doc, float score, int shardIndex)
Method Detail |
---|
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |