net.sf.mmapps.modules.lucenesearch
Class SearchResult
java.lang.Object
net.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 objectdocument
- Lucene document id to retreive for this SearchResult
- Throws:
java.io.IOException
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.