|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Hit
public class Hit
Wrapper used by HitIterator
to provide a lazily loaded hit
from Hits
.
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String name)
Returns the string value of the field with the given name if any exist in this document, or null. |
float |
getBoost()
Returns the boost factor for this hit on any field of the underlying document. |
Document |
getDocument()
Returns document for this hit. |
int |
getId()
Returns id for this hit. |
float |
getScore()
Returns score for this hit. |
java.lang.String |
toString()
Prints the parameters to be used to discover the promised result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Document getDocument() throws CorruptIndexException, java.io.IOException
CorruptIndexException
- if the index is corrupt
java.io.IOException
- if there is a low-level IO errorHits.doc(int)
public float getScore() throws java.io.IOException
java.io.IOException
Hits.score(int)
public int getId() throws java.io.IOException
java.io.IOException
Hits.id(int)
public float getBoost() throws CorruptIndexException, java.io.IOException
CorruptIndexException
- if the index is corrupt
java.io.IOException
- if there is a low-level IO errorDocument.getBoost()
public java.lang.String get(java.lang.String name) throws CorruptIndexException, java.io.IOException
CorruptIndexException
- if the index is corrupt
java.io.IOException
- if there is a low-level IO errorDocument.get(String)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |