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
SearchResultIF
getDocument
in interface SearchResultIF
IOException
public float getScore(int hit) throws IOException
SearchResultIF
getScore
in interface SearchResultIF
IOException
public int hits()
SearchResultIF
hits
in interface SearchResultIF