|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Result
A class that holds a single search result.
Method Summary | |
---|---|
double |
getDistance(Result r,
java.lang.String name)
Gets the distance between this result and another based on a named feature vector value. |
Document |
getDocument()
Gets a document abstraction for the document in this result. |
DocumentVector |
getDocumentVector()
Gets a document vector corresponding to the document in this result. |
DocumentVector |
getDocumentVector(java.lang.String field)
Gets a document vector corresponding to a particluar vectored field in the document in this result. |
DocumentVector |
getDocumentVector(WeightedField[] fields)
Gets a composite document vector that corresponds to a linear combination of a number of vectored fields in the document in this result. |
java.util.List |
getField(java.lang.String name)
Gets the values of a saved field for the document. |
java.util.Iterator |
getFieldIterator()
Returns an iterator for all of the field values in a result. |
java.lang.String |
getIndexName()
Gets the name of the index that this result was drawn from. |
java.lang.String |
getKey()
Gets the document key associated with the document represented by this result. |
int |
getNPassages()
Gets the number of passages associated with this result. |
PassageBuilder |
getPassageBuilder()
Gets a passage builder that can be used to construct passages for display from this result. |
float |
getScore()
Gets the score associated with this result. |
java.lang.Object |
getSingleFieldValue(java.lang.String name)
Gets a single value of a saved field for the document. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getKey()
java.util.List getField(java.lang.String name)
name
- The name of the field for which we want the saved
values.
java.lang.Object getSingleFieldValue(java.lang.String name)
name
- The name of the field for which we want the saved
values.
null
is returned.Document getDocument()
DocumentVector getDocumentVector()
DocumentVector getDocumentVector(java.lang.String field)
field
- the name of a vectored field upon which the clustering
should be based. A value of null
indicates that all vectored
fields should be considered, while an empty string indicates that data
in no explicit field should be considered.
getDocumentVector(WeightedField[])
DocumentVector getDocumentVector(WeightedField[] fields)
fields
- the fields that we will be using to build the document
vector
getDocumentVector(String)
java.util.Iterator getFieldIterator()
float getScore()
double getDistance(Result r, java.lang.String name)
r
- the other resultname
- the name of the feature vector field
int getNPassages()
java.lang.String getIndexName()
SearchEngine
at startup time.
PassageBuilder getPassageBuilder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |