public interface Searcher
Interface of Text Searcher
The toolkit provides a well-defined framework for text retrieval. The first step is to generate a query according to the topic descriptions (such as TREC Topic files). Please refer to the package of dragon.ir.query for query generation. The second step is to create a searcher. Since there are so many different retrieval models, the toolkit creates an interface called Smoother to hide the implementation details of different models. Thus, the routine for searching is the same for different models. One can simply call a full rank searcher or a partial rank searcher.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
IndexReader |
getIndexReader() |
IRDoc |
getIRDoc(int ranking)
Before calling this method, one should call the search function.
|
IRQuery |
getQuery() |
boolean |
getQueryWeightingOption() |
ArrayList |
getRankedDocumentList() |
int |
getRetrievedDocNum() |
Smoother |
getSmoother() |
int |
search(IRQuery query) |
void |
setQueryWeightingOption(boolean option)
If the weighting option is set to false, the searcher ignores the weight of searching terms.
|
int search(IRQuery query)
query - the structured queryIRDoc getIRDoc(int ranking)
ranking - the position of the ranked documents. The position starts from zero.ArrayList getRankedDocumentList()
int getRetrievedDocNum()
IndexReader getIndexReader()
Smoother getSmoother()
IRQuery getQuery()
void setQueryWeightingOption(boolean option)
option - the weighting optionboolean getQueryWeightingOption()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.