Interface SearchResultIF
-
- All Known Implementing Classes:
LuceneSearchResult,RDBMSSearchResult
public interface SearchResultIFINTERNAL: A search result containing a list of ranked hits.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentIFgetDocument(int hit)INTERNAL: Returns the document located at the given index.floatgetScore(int hit)INTERNAL: Returns the score of the document located at the given index.inthits()INTERNAL: Returns the number of hits (documents) in the search result.
-
-
-
Method Detail
-
getDocument
DocumentIF getDocument(int hit) throws IOException
INTERNAL: Returns the document located at the given index.- Throws:
IOException
-
getScore
float getScore(int hit) throws IOExceptionINTERNAL: Returns the score of the document located at the given index.- Throws:
IOException
-
hits
int hits() throws IOException
INTERNAL: Returns the number of hits (documents) in the search result.- Throws:
IOException
-
-