|
Lucene.Net
3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
|
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...
Inherits Lucene.Net.Search.RewriteMethod.
Inherited by Lucene.Net.Search.MultiTermQuery.AnonymousClassConstantScoreAutoRewrite.
Public Member Functions | |
| ConstantScoreAutoRewrite () | |
| override Query | Rewrite (IndexReader reader, MultiTermQuery query) |
| override int | GetHashCode () |
| override bool | Equals (System.Object obj) |
Static Public Attributes | |
| static int | DEFAULT_TERM_COUNT_CUTOFF = 350 |
| static double | DEFAULT_DOC_COUNT_PERCENT = 0.1 |
Properties | |
| virtual int | TermCountCutoff [get, set] |
| If the number of terms in this query is equal to or larger than this setting then CONSTANT_SCORE_FILTER_REWRITE is used. | |
| virtual double | DocCountPercent [get, set] |
| 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. | |
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.
Definition at line 214 of file MultiTermQuery.cs.
| Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.ConstantScoreAutoRewrite | ( | ) |
Definition at line 216 of file MultiTermQuery.cs.
| override bool Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.Equals | ( | System.Object | obj | ) |
Definition at line 325 of file MultiTermQuery.cs.
| override int Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.GetHashCode | ( | ) |
Definition at line 319 of file MultiTermQuery.cs.
|
virtual |
Implements Lucene.Net.Search.RewriteMethod.
Definition at line 260 of file MultiTermQuery.cs.
|
static |
Definition at line 233 of file MultiTermQuery.cs.
|
static |
Definition at line 229 of file MultiTermQuery.cs.
|
getset |
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.
0.0 to 100.0
Definition at line 255 of file MultiTermQuery.cs.
|
getset |
If the number of terms in this query is equal to or larger than this setting then CONSTANT_SCORE_FILTER_REWRITE is used.
Definition at line 243 of file MultiTermQuery.cs.
1.8.3