net.ontopia.infoset.fulltext.impl.lucene
Class LuceneSearchResult

java.lang.Object
  extended by net.ontopia.infoset.fulltext.impl.lucene.LuceneSearchResult
All Implemented Interfaces:
SearchResultIF

public class LuceneSearchResult
extends java.lang.Object
implements SearchResultIF

INTERNAL: Lucene search result wrapper implementation.


Field Summary
protected  org.apache.lucene.search.Hits hits
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hits

protected org.apache.lucene.search.Hits hits
Method Detail

getDocument

public DocumentIF getDocument(int hit)
                       throws java.io.IOException
Description copied from interface: SearchResultIF
INTERNAL: Returns the document located at the given index.

Specified by:
getDocument in interface SearchResultIF
Throws:
java.io.IOException

getScore

public float getScore(int hit)
               throws java.io.IOException
Description copied from interface: SearchResultIF
INTERNAL: Returns the score of the document located at the given index.

Specified by:
getScore in interface SearchResultIF
Throws:
java.io.IOException

hits

public int hits()
Description copied from interface: SearchResultIF
INTERNAL: Returns the number of hits (documents) in the search result.

Specified by:
hits in interface SearchResultIF


Copyright © 2000-2012 Ontopia.