Class LuceneSearchResult
- java.lang.Object
-
- net.ontopia.infoset.fulltext.impl.lucene.LuceneSearchResult
-
- All Implemented Interfaces:
SearchResultIF
public class LuceneSearchResult extends Object implements SearchResultIF
INTERNAL: Lucene search result wrapper implementation.
-
-
Method Summary
All Methods Instance Methods Concrete 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
public DocumentIF getDocument(int hit) throws IOException
Description copied from interface:SearchResultIFINTERNAL: Returns the document located at the given index.- Specified by:
getDocumentin interfaceSearchResultIF- Throws:
IOException
-
getScore
public float getScore(int hit) throws IOExceptionDescription copied from interface:SearchResultIFINTERNAL: Returns the score of the document located at the given index.- Specified by:
getScorein interfaceSearchResultIF- Throws:
IOException
-
hits
public int hits()
Description copied from interface:SearchResultIFINTERNAL: Returns the number of hits (documents) in the search result.- Specified by:
hitsin interfaceSearchResultIF
-
-