FirteX-高性能全文索引和检索平台API Documentation |
#include <Query.h>
继承图,类firtex::search::CQuery

公有成员 | |
| CQuery (void) | |
| virtual | ~CQuery (void) |
| float | getBoost () |
| void | setBoost (float fBoost) |
| CWeight * | weight (CSearcher *pSearcher) |
| bool | instanceOf (const tchar *other) |
| CSimilarity * | getSimilarity (CSearcher *pSearcher) |
| virtual CQuery * | optimize (firtex::index::CIndexReader *pReader) |
| virtual CWeight * | createWeight (CSearcher *pSearcher) |
| virtual CScorer * | scorer (CSearcher *pSearcher) |
| virtual CQuery * | clone ()=0 |
| virtual const tchar * | getQueryName () const =0 |
保护属性 | |
| float | m_fBoost |
|
|
|
|
|
|
|
|
克隆新的对象,需子类实现 非内部对象,外部删除 在firtex::search::CBooleanQuery、firtex::search::CPhraseQuery、firtex::search::CRangeQuery及firtex::search::CTermQuery内被实现。 |
|
|
创建Query对应的Weight
被firtex::search::CBooleanQuery、firtex::search::CPhraseQuery及firtex::search::CTermQuery重载。 |
|
|
获取/设置查询对象的提升值(boost) |
|
|
获取查询名称标识 在firtex::search::CBooleanQuery、firtex::search::CPhraseQuery、firtex::search::CRangeQuery及firtex::search::CTermQuery内被实现。 |
|
|
获取Similarity组件
|
|
|
判断是否是某一查询的实例
|
|
|
对查询进行优化,生成新的查询对象,子类可重载,默认情况下返回自身
被firtex::search::CBooleanQuery及firtex::search::CRangeQuery重载。 |
|
|
返回打分器,需子类实现
被firtex::search::CBooleanQuery、firtex::search::CPhraseQuery及firtex::search::CTermQuery重载。 |
|
|
|
|
|
获取查询对象的权重计算部件
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex