|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Hits
A ranked list of documents, used to hold search results.
Method Summary | |
Document |
doc(int n)
Returns the stored fields of the nth document in this set. |
int |
id(int n)
Returns the id for the nth document in this set. |
int |
length()
Returns the total number of hits available in this set. |
float |
score(int n)
Returns the score for the nth document in this set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final int length()
public final Document doc(int n) throws java.io.IOException
Documents are cached, so that repeated requests for the same element may return the same Document object.
java.io.IOException
public final float score(int n) throws java.io.IOException
java.io.IOException
public final int id(int n) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |