public class LuceneSearchResult extends Object implements SearchResultIF
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.lucene.search.TopDocs |
hits |
protected org.apache.lucene.search.IndexSearcher |
searcher |
| Modifier and Type | Method and 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.
|
protected org.apache.lucene.search.TopDocs hits
protected final org.apache.lucene.search.IndexSearcher searcher
public DocumentIF getDocument(int hit) throws IOException
SearchResultIFgetDocument in interface SearchResultIFIOExceptionpublic float getScore(int hit)
throws IOException
SearchResultIFgetScore in interface SearchResultIFIOExceptionpublic int hits()
SearchResultIFhits in interface SearchResultIF