Class 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.
Inheritance
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public class ConstantScoreAutoRewrite : TermCollectingRewrite<BooleanQuery>
Fields
Name | Description |
---|---|
DEFAULT_DOC_COUNT_PERCENT | If the query will hit more than 1 in 1000 of the docs in the index (0.1%), the filter method is fastest: |
DEFAULT_TERM_COUNT_CUTOFF | Defaults derived from rough tests with a 20.0 million doc Wikipedia index. With more than 350 terms in the query, the filter method is fastest: |
Properties
Name | Description |
---|---|
DocCountPercent | If the number of documents to be visited in the postings exceeds this specified percentage of the Lucene.Net.Index.IndexReader.IntMaxDoc for the index, then CONSTANT_SCORE_FILTER_REWRITE is used. Value may be 0.0 to 100.0. |
TermCountCutoff | If the number of terms in this query is equal to or larger than this setting then CONSTANT_SCORE_FILTER_REWRITE is used. |
Methods
Name | Description |
---|---|
AddClause(BooleanQuery, Term, Int32, Single, TermContext) | |
Equals(Object) | |
GetHashCode() | |
GetTopLevelQuery() | |
Rewrite(IndexReader, MultiTermQuery) |