net.ontopia.infoset.fulltext.core
Interface SearchResultIF

All Known Implementing Classes:
LuceneSearchResult, RDBMSSearchResult

public interface SearchResultIF

INTERNAL: A search result containing a list of ranked 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.
 

Method Detail

getDocument

DocumentIF getDocument(int hit)
                       throws java.io.IOException
INTERNAL: Returns the document located at the given index.

Throws:
java.io.IOException

getScore

float getScore(int hit)
               throws java.io.IOException
INTERNAL: Returns the score of the document located at the given index.

Throws:
java.io.IOException

hits

int hits()
         throws java.io.IOException
INTERNAL: Returns the number of hits (documents) in the search result.

Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.