Interface SearchResultIF
-
- All Known Implementing Classes:
LuceneSearchResult
,RDBMSSearchResult
public interface SearchResultIF
INTERNAL: A search result containing a list of ranked hits.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DocumentIF
getDocument(int hit)
INTERNAL: Returns the document located at the given index.float
getScore(int hit)
INTERNAL: Returns the score of the document located at the given index.int
hits()
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 IOException
INTERNAL: 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
-
-