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>
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.
◆ ConstantScoreAutoRewrite()
Lucene::ConstantScoreAutoRewrite::ConstantScoreAutoRewrite |
( |
| ) |
|
◆ ~ConstantScoreAutoRewrite()
virtual Lucene::ConstantScoreAutoRewrite::~ConstantScoreAutoRewrite |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::ConstantScoreAutoRewrite::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ equals()
virtual bool Lucene::ConstantScoreAutoRewrite::equals |
( |
const LuceneObjectPtr & |
other | ) |
|
|
virtual |
◆ getClassName()
virtual String Lucene::ConstantScoreAutoRewrite::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ getDocCountPercent()
virtual double Lucene::ConstantScoreAutoRewrite::getDocCountPercent |
( |
| ) |
|
|
virtual |
◆ getTermCountCutoff()
virtual int32_t Lucene::ConstantScoreAutoRewrite::getTermCountCutoff |
( |
| ) |
|
|
virtual |
◆ hashCode()
virtual int32_t Lucene::ConstantScoreAutoRewrite::hashCode |
( |
| ) |
|
|
virtual |
◆ rewrite()
◆ setDocCountPercent()
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
-
◆ setTermCountCutoff()
virtual void Lucene::ConstantScoreAutoRewrite::setTermCountCutoff |
( |
int32_t |
count | ) |
|
|
virtual |
◆ shared_from_this()
◆ DEFAULT_DOC_COUNT_PERCENT
const double Lucene::ConstantScoreAutoRewrite::DEFAULT_DOC_COUNT_PERCENT |
|
static |
◆ DEFAULT_TERM_COUNT_CUTOFF
const int32_t Lucene::ConstantScoreAutoRewrite::DEFAULT_TERM_COUNT_CUTOFF |
|
static |
◆ docCountPercent
double Lucene::ConstantScoreAutoRewrite::docCountPercent |
|
protected |
◆ termCountCutoff
int32_t Lucene::ConstantScoreAutoRewrite::termCountCutoff |
|
protected |
The documentation for this class was generated from the following file: