Methods Summary |
---|
private void | fetchTheHit()
doc = hits.doc(hitNumber);
resolved = true;
|
public 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. If multiple fields exist with this name, this
method returns the first value added. If only binary fields with this name
exist, returns null.
return getDocument().get(name);
|
public float | getBoost()Returns the boost factor for this hit on any field of the underlying document.
return getDocument().getBoost();
|
public org.apache.lucene.document.Document | getDocument()Returns document for this hit.
if (!resolved) fetchTheHit();
return doc;
|
public int | getId()Returns id for this hit.
return hits.id(hitNumber);
|
public float | getScore()Returns score for this hit.
return hits.score(hitNumber);
|
public java.lang.String | toString()Prints the parameters to be used to discover the promised result.
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();
|