|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RevertedSearcher
Defines methods that generate query expansion terms from a reverted index. Also defines relevance feedback and pseudo-relevance feedback.
| Method Summary | |
|---|---|
RankedList |
runDocumentQuery(java.lang.Iterable<java.lang.String> docids)
Runs a query consisting of a set of document ids |
RankedList |
runDocumentQuery(java.lang.Iterable<java.lang.String> docids,
int nTerms)
Runs a query consisting of a set of document ids |
RankedList |
runDocumentQuery(java.lang.String[] docids)
Runs a query consisting of a String[] of document ids |
RankedList |
runDocumentQuery(java.lang.String[] docids,
int nTerms)
Runs a query consisting of a String[] of document ids |
RankedList |
runPrfQuery(RankedList list,
int k,
boolean useScores)
Runs a query to generate expansion terms using pseudo-relevance feedback, picking the top k documents from the given list. |
RankedList |
runRfQuery(RankedList list,
boolean useScores)
Runs a query to generate expansion terms using relevance feedback, picking relevant documents from the given list. |
| Methods inherited from interface com.fxpal.search.Searcher |
|---|
close, runQuery, runQuery |
| Method Detail |
|---|
RankedList runDocumentQuery(java.lang.Iterable<java.lang.String> docids)
throws QueryParsingException
docids - Iterable that enumerates the document ids.
QueryParsingException
RankedList runDocumentQuery(java.lang.Iterable<java.lang.String> docids,
int nTerms)
throws QueryParsingException
docids - Iterable that enumerates the document ids.nTerms - Number of expansion terms to generate.
QueryParsingException
RankedList runDocumentQuery(java.lang.String[] docids)
throws QueryParsingException
docids - String[] that contains the document ids.
QueryParsingException
RankedList runDocumentQuery(java.lang.String[] docids,
int nTerms)
throws QueryParsingException
docids - String[] that contains the document ids.nTerms - Number of expansion terms to generate.
QueryParsingException
RankedList runPrfQuery(RankedList list,
int k,
boolean useScores)
throws QueryParsingException
RankedList returned by this method contains references to
documents from the reverted index. Each "reverted document" is identified
by a BasisQuery that serves as its id. The retrieval score
(suitably normalized) serves as a measure of how representative the term
is of the documents that were used to generate it. This RankedList of
terms can be used to expand a query against an inverted index. See
Searcher for the methods to do that.
list - RankedList of documents from an inverted index search.k - Number of top documents used to generate expansion termsuseScores - if true, documents are given weights based on their score
in the RankedList
RankedList of expansion terms
QueryParsingException
RankedList runRfQuery(RankedList list,
boolean useScores)
throws QueryParsingException
RankedList returned by this method contains references to
documents from the reverted index. Each "reverted document" is identified
by a BasisQuery that serves as its id. The retrieval score
(suitably normalized) serves as a measure of how representative the term
is of the documents that were used to generate it. This RankedList of
terms can be used to expand a query against an inverted index. See
Searcher for the methods to do that.
list - RankedList of documents from an inverted index search.
Relevant documents should be identified by marking the
corresponding DocumentMatch as relevant.useScores - if true, documents are given weights based on their score
in the RankedList
RankedList of expansion terms
QueryParsingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||