java.lang.Object | ||
↳ | org.apache.lucene.search.MultiTermQuery.RewriteMethod | |
↳ | org.apache.lucene.search.MultiTermQuery.ConstantScoreAutoRewrite |
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.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT_DOC_COUNT_PERCENT | |||||||||||
DEFAULT_TERM_COUNT_CUTOFF |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. | |||||||||||
If the number of terms in this query is equal to or
larger than this setting then
CONSTANT_SCORE_FILTER_REWRITE is used. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.MultiTermQuery.RewriteMethod
| |||||||||||
From class
java.lang.Object
|
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.
percent | 0.0 to 100.0 |
---|
If the number of terms in this query is equal to or
larger than this setting then CONSTANT_SCORE_FILTER_REWRITE
is used.