public abstract class AbstractSearcher extends Object implements Searcher
Abstract class of Searcher
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
hitlist |
protected IndexReader |
indexReader |
protected IRQuery |
query |
protected Smoother |
smoother |
| Constructor and Description |
|---|
AbstractSearcher(IndexReader indexReader,
Smoother smoother) |
| Modifier and Type | Method and Description |
|---|---|
protected SimpleTermPredicate[] |
checkSimpleTermQuery(RelSimpleQuery query) |
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() |
void |
setQueryWeightingOption(boolean option)
If the weighting option is set to false, the searcher ignores the weight of searching terms.
|
protected IndexReader indexReader
protected ArrayList hitlist
protected IRQuery query
protected Smoother smoother
public AbstractSearcher(IndexReader indexReader, Smoother smoother)
protected SimpleTermPredicate[] checkSimpleTermQuery(RelSimpleQuery query)
public IRDoc getIRDoc(int ranking)
Searcherpublic ArrayList getRankedDocumentList()
getRankedDocumentList in interface Searcherpublic int getRetrievedDocNum()
getRetrievedDocNum in interface Searcherpublic Smoother getSmoother()
getSmoother in interface Searcherpublic IndexReader getIndexReader()
getIndexReader in interface Searcherpublic void setQueryWeightingOption(boolean option)
SearchersetQueryWeightingOption in interface Searcheroption - the weighting optionpublic boolean getQueryWeightingOption()
getQueryWeightingOption in interface SearcherCopyright © 2018 JULIE Lab, Germany. All rights reserved.