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.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.lucene.search.TopDocs
     
    protected final org.apache.lucene.search.IndexSearcher
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    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 Details

    • hits

      protected org.apache.lucene.search.TopDocs hits
    • searcher

      protected final org.apache.lucene.search.IndexSearcher searcher
  • Method Details