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

公有成员 | |
| CBooleanScorer (CSimilarity *pSimilarity, int minNrShouldMatch=1) | |
| virtual | ~CBooleanScorer (void) |
| count_t | nextDocs () |
| count_t | scores (docid_t *&docs, score_t *&scores) |
| bool | skipTo (docid_t target, docid_t &nearTarget) |
| bool | next () |
| docid_t | doc () |
| score_t | score () |
| void | add (CScorer *pScorer, bool bRequired, bool bProhibited) |
保护成员 | |
| CScorer * | makeScorer () |
| CScorer * | makeScorerNoReq () |
| CScorer * | makeScorerSomeReq () |
| CScorer * | makeConjunctionScorer (ScorerList *scorerList) |
| CScorer * | makeDisjunctionScorer (ScorerList *scorerList, int minNrShouldMatch) |
| CScorer * | addProhibitedScorers (CScorer *requiredScorer) |
| CScorer * | dualConjunctionScorer (CScorer *req1, CScorer *req2) |
保护属性 | |
| int | m_minNrShouldMatch |
| ScorerList | m_requiredScorers |
| ScorerList | m_optionalScorers |
| ScorerList | m_prohibitedScorers |
| CScorer * | m_pScorer |
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
依次取一个文档进行打分
|
|
|
提取下一批文档
|
|
|
|
|
||||||||||||
|
取文档的打分结果,必须配合nextDocs()使用,当返回值>0时才有效。
|
|
||||||||||||
|
移动到第一个文档编号大于或等于target的位置,一般配合score()使用
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://www.firtex.org http://www.sourceforge.net/projects/firtex