gate.creole.ir
Class QueryResult

java.lang.Object
  extended bygate.creole.ir.QueryResult

public class QueryResult
extends Object


Field Summary
private  Object docID
          Persistance document ID.
private  List fieldValues
          List of Terms
private  float relevance
          Score(relevance) of the result between 0 and 1
 
Constructor Summary
QueryResult(Object docID, float relevance, List fieldValues)
          Constructor of the class.
 
Method Summary
 Object getDocumentID()
           
 List getFields()
          returns certain document fields (if specified) from the search() call
 float getScore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

docID

private Object docID
Persistance document ID.


relevance

private float relevance
Score(relevance) of the result between 0 and 1


fieldValues

private List fieldValues
List of Terms

Constructor Detail

QueryResult

public QueryResult(Object docID,
                   float relevance,
                   List fieldValues)
Constructor of the class.

Method Detail

getDocumentID

public Object getDocumentID()
Returns:
persistance document ID.

getScore

public float getScore()
Returns:
relevance of this result.

getFields

public List getFields()
returns certain document fields (if specified) from the search() call