|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dlese.dpc.index.ResultDoc
A container for a hit that is returned from a SimpleLuceneIndex search.
DocReader,
Serialized Form| Constructor Summary | |
|---|---|
ResultDoc(Document doc)
Constructs a ResultDoc using the Document
provided. |
|
ResultDoc(ResultDocConfig conf,
int docNum,
float s)
Constructor for the ResultDoc that is used by the SimpleLuceneIndex class during search result hit list
compilation. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object obj)
Compares two ResultDocs for sorting by score. |
DocReader |
getDocReader()
Gets the DocReader used to read the specific
Document type that is returned in a search. |
String |
getDoctype()
Gets the doctype for this ResultDoc. |
Document |
getDocument()
Gets the Lucene Document associated with this
ResultDoc. |
SimpleLuceneIndex |
getIndex()
Gets the index that was searched over. |
String |
getQuery()
|
String |
getReaderClass()
Gets the readerClass attribute of the ResultDoc object |
float |
getScore()
Gets the score assigned to this ResultDoc by the Lucene engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResultDoc(ResultDocConfig conf,
int docNum,
float s)
SimpleLuceneIndex class during search result hit list
compilation.
docNum - The Lucene document number for the Document associated with this ResultDoc.s - The rank assigned to this result by the Lucene search engine.public ResultDoc(Document doc)
Document
provided. Use this constructor to wrap a Document
inside a ResultDoc.
doc - A Lucene Document used to populate
this ResultDoc.| Method Detail |
public final DocReader getDocReader()
DocReader used to read the specific
Document type that is returned in a search.
DocReaderpublic final String getDoctype()
public final String getReaderClass()
public final Document getDocument()
Document associated with this
ResultDoc.
Document associated with this
ResultDoc.public final SimpleLuceneIndex getIndex()
public final String getQuery()
public final float getScore()
public final int compareTo(Object obj)
compareTo in interface Comparableobj - A ResultDoc to compare with this one.
|
DLESE Tools v1.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||