|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Searcher
Searcher instances encapsulate the mechanics of running a query
against an inverted index and returning a ranked list of documents.
RevertedQuerying uses an instance to manage access to the
inverted index.
Implementations should provide appropriate implementations to run queries.
| Method Summary | |
|---|---|
void |
close()
Closes the underlying resources. |
RankedList |
runQuery(java.lang.String query)
Runs a query and return a ranked list of documents. |
RankedList |
runQuery(java.lang.String query,
RankedList expansionTerms)
Expands the query with a RankedList of terms from a reverted index. |
| Method Detail |
|---|
RankedList runQuery(java.lang.String query)
throws QueryParsingException
query - Query string
RankedList that contains document ids that match the query, with their scores
QueryParsingException
RankedList runQuery(java.lang.String query,
RankedList expansionTerms)
throws QueryParsingException
query - Query that should be expandedexpansionTerms - RankedList that contains matches from a
reverted index that will be used to expand the
given query.
RankedList that contains document ids that match the query, with their scores
QueryParsingExceptionvoid close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||