TopScoreDocCollector and TopDocs instead. Hits will be removed in Lucene 3.0.public class Hit
extends java.lang.Object
implements java.io.Serializable
HitIterator to provide a lazily loaded hit
from Hits.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(java.lang.String name)
Deprecated.
Returns the string value of the field with the given name if any exist in
this document, or null.
|
float |
getBoost()
Deprecated.
Returns the boost factor for this hit on any field of the underlying document.
|
Document |
getDocument()
Deprecated.
Returns document for this hit.
|
int |
getId()
Deprecated.
Returns id for this hit.
|
float |
getScore()
Deprecated.
Returns score for this hit.
|
java.lang.String |
toString()
Deprecated.
Prints the parameters to be used to discover the promised result.
|
public Document getDocument() throws CorruptIndexException, java.io.IOException
CorruptIndexException - if the index is corruptjava.io.IOException - if there is a low-level IO errorHits.doc(int)public float getScore()
throws java.io.IOException
java.io.IOExceptionHits.score(int)public int getId()
throws java.io.IOException
java.io.IOExceptionHits.id(int)public float getBoost()
throws CorruptIndexException,
java.io.IOException
CorruptIndexException - if the index is corruptjava.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 corruptjava.io.IOException - if there is a low-level IO errorDocument.get(String)public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.