.
| Method from org.apache.lucene.search.Hit Detail: |
public String get(String name) throws IOException, CorruptIndexException {
return getDocument().get(name);
}
Returns the string value of the field with the given name if any exist in
this document, or null. If multiple fields exist with this name, this
method returns the first value added. If only binary fields with this name
exist, returns null. |
public float getBoost() throws IOException, CorruptIndexException {
return getDocument().getBoost();
}
Returns the boost factor for this hit on any field of the underlying document. |
public Document getDocument() throws IOException, CorruptIndexException {
if (!resolved) fetchTheHit();
return doc;
}
Returns document for this hit. |
public int getId() throws IOException {
return hits.id(hitNumber);
}
|
public float getScore() throws IOException {
return hits.score(hitNumber);
}
Returns score for this hit. |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Hit< ");
buffer.append(hits.toString());
buffer.append(" [");
buffer.append(hitNumber);
buffer.append("] ");
if (resolved) {
buffer.append("resolved");
} else {
buffer.append("unresolved");
}
buffer.append(" >");
return buffer.toString();
}
Prints the parameters to be used to discover the promised result. |