A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query. If both the number of terms and documents is small enough, then CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE is used. Otherwise, CONSTANT_SCORE_FILTER_REWRITE is used.
More...
#include <MultiTermQuery.h>
Detailed Description
A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query. If both the number of terms and documents is small enough, then CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE is used. Otherwise, CONSTANT_SCORE_FILTER_REWRITE is used.
Constructor & Destructor Documentation
Lucene::ConstantScoreAutoRewrite::ConstantScoreAutoRewrite |
( |
| ) |
|
virtual Lucene::ConstantScoreAutoRewrite::~ConstantScoreAutoRewrite |
( |
| ) |
|
|
virtual |
Member Function Documentation
static String Lucene::ConstantScoreAutoRewrite::_getClassName |
( |
| ) |
|
|
inlinestatic |
virtual bool Lucene::ConstantScoreAutoRewrite::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
virtual String Lucene::ConstantScoreAutoRewrite::getClassName |
( |
| ) |
|
|
inlinevirtual |
virtual double Lucene::ConstantScoreAutoRewrite::getDocCountPercent |
( |
| ) |
|
|
virtual |
virtual int32_t Lucene::ConstantScoreAutoRewrite::getTermCountCutoff |
( |
| ) |
|
|
virtual |
virtual int32_t Lucene::ConstantScoreAutoRewrite::hashCode |
( |
| ) |
|
|
virtual |
virtual void Lucene::ConstantScoreAutoRewrite::setDocCountPercent |
( |
double |
percent | ) |
|
|
virtual |
If the number of documents to be visited in the postings exceeds this specified percentage of the maxDoc() for the index, then CONSTANT_SCORE_FILTER_REWRITE is used.
- Parameters
-
virtual void Lucene::ConstantScoreAutoRewrite::setTermCountCutoff |
( |
int32_t |
count | ) |
|
|
virtual |
Field Documentation
const double Lucene::ConstantScoreAutoRewrite::DEFAULT_DOC_COUNT_PERCENT |
|
static |
const int32_t Lucene::ConstantScoreAutoRewrite::DEFAULT_TERM_COUNT_CUTOFF |
|
static |
double Lucene::ConstantScoreAutoRewrite::docCountPercent |
|
protected |
int32_t Lucene::ConstantScoreAutoRewrite::termCountCutoff |
|
protected |
The documentation for this class was generated from the following file: