|
|||||||||
| Home >> All >> com >> RuntimeCollective >> search >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.RuntimeCollective.search.bean
Class SearchResult

java.lang.Objectcom.RuntimeCollective.search.bean.SearchResult
- public class SearchResult
- extends java.lang.Object
A single search result.
- Version:
- $Id: SearchResult.java,v 1.6 2003/09/30 15:12:57 joe Exp $
| Field Summary | |
private org.apache.lucene.document.Document |
doc
|
private int |
index
|
private float |
score
|
private Searchable |
searchable
|
| Constructor Summary | |
SearchResult(org.apache.lucene.document.Document doc,
float score,
int index)
Make a new SearchResult from a Lucene document, and this document's score. |
|
| Method Summary | |
org.apache.lucene.document.Document |
getDocument()
Get the Document, useful for doing some complex post-processing. |
int |
getIndex()
Get the index of this search result. |
java.lang.String |
getLink()
Get a link that will display this search result |
float |
getScore()
Get the score, or ranking, of this search result. |
Searchable |
getSearchable()
Get the Searchable object that this search result refers to. |
java.lang.String |
getSearchText()
Get the full text of the this search result. |
java.lang.String |
getSummary()
Get the summary of this search result. |
java.lang.String |
getTitle()
Get the title of the this search result. |
void |
setIndex(int pos)
Set the index of this search result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
score
private float score
doc
private org.apache.lucene.document.Document doc
searchable
private Searchable searchable
index
private int index
| Constructor Detail |
SearchResult
public SearchResult(org.apache.lucene.document.Document doc, float score, int index)
- Make a new SearchResult from a Lucene
document, and this document's score. Also give it an index number, for ranking
| Method Detail |
getSearchable
public Searchable getSearchable()
- Get the Searchable object that this search result refers to.
getDocument
public org.apache.lucene.document.Document getDocument()
- Get the Document, useful for doing some complex post-processing.
Example: sort the results without having to load all the Searchables.
getScore
public float getScore()
- Get the score, or ranking, of this search result.
getIndex
public int getIndex()
- Get the index of this search result.
setIndex
public void setIndex(int pos)
- Set the index of this search result.
getLink
public java.lang.String getLink()
- Get a link that will display this search result
getTitle
public java.lang.String getTitle()
- Get the title of the this search result.
getSummary
public java.lang.String getSummary()
- Get the summary of this search result.
getSearchText
public java.lang.String getSearchText()
- Get the full text of the this search result.
|
|||||||||
| Home >> All >> com >> RuntimeCollective >> search >> [ bean overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.RuntimeCollective.search.bean.SearchResult