|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.extensions.textual.lucene.LuceneSearchResult
public class LuceneSearchResult
Stores the result of a search. It is a list of relevant documents with an assigned score.
Constructor Summary | |
---|---|
protected |
LuceneSearchResult(org.apache.lucene.search.Hits hits,
LuceneIndex index)
Transforms from Lucene result format. |
Method Summary | |
---|---|
java.lang.String |
getContent(int position,
java.lang.String fieldName)
Returns the content of a field of the document located in the given position. |
LuceneDocument |
getDocAt(int position)
Gets the document in a position inside the results list. |
int |
getDocPosition(java.lang.String docID)
Gets the position of a document in the result given its ID. |
float |
getDocScore(int position,
boolean normalized)
Gets the score obtained by a document located in a position of the result list. |
float |
getDocScore(java.lang.String docID,
boolean normalized)
Gets the score obtained by a document. |
int |
getResultLength()
Returns the number of results |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LuceneSearchResult(org.apache.lucene.search.Hits hits, LuceneIndex index) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public int getDocPosition(java.lang.String docID)
public LuceneDocument getDocAt(int position)
public float getDocScore(java.lang.String docID, boolean normalized)
public float getDocScore(int position, boolean normalized)
public java.lang.String getContent(int position, java.lang.String fieldName)
position
- of the document in the result listfieldName
- that stores the text to returnpublic int getResultLength()
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |