net.sf.mmapps.modules.lucenesearch
Class SearchResult

java.lang.Object
  extended bynet.sf.mmapps.modules.lucenesearch.SearchResult

public final class SearchResult
extends java.lang.Object

Search result object, is returned after a search is completed. This object holds the basic information needed to show the seatch result and the information Lucene's search gathered from the index.

Version:
$Revision: 1.1 $
Author:
Wouter Heijke

Constructor Summary
SearchResult(org.apache.lucene.search.Hits hits, int document)
          Constructs a Lucene module SearchResult
 
Method Summary
 float getBoost()
           
 java.lang.String getBuilder()
           
 int getDoc()
           
 java.lang.String getNumber()
           
 float getScore()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResult

public SearchResult(org.apache.lucene.search.Hits hits,
                    int document)
             throws java.io.IOException
Constructs a Lucene module SearchResult

Parameters:
hits - Lucene search result Hits object
document - Lucene document id to retreive for this SearchResult
Throws:
java.io.IOException
Method Detail

getBuilder

public java.lang.String getBuilder()
Returns:
Returns the builder.

getDoc

public int getDoc()
Returns:
Returns the doc.

getNumber

public java.lang.String getNumber()
Returns:
Returns the number.

getScore

public float getScore()
Returns:
Returns the score.

getBoost

public float getBoost()
Returns:
Returns the boost.


Copyright © 2003-2005 mmapps. All Rights Reserved.