Class ConstantScoreAutoRewrite
Inheritance
System.Object
ConstantScoreAutoRewrite
Assembly: Lucene.Net.dll
Syntax
public class ConstantScoreAutoRewrite : TermCollectingRewrite<BooleanQuery>
Fields
|
Improve this Doc
View Source
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:
Declaration
public static double DEFAULT_DOC_COUNT_PERCENT
Field Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
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:
Declaration
public static int DEFAULT_TERM_COUNT_CUTOFF
Field Value
Type |
Description |
System.Int32 |
|
Properties
|
Improve this Doc
View Source
DocCountPercent
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.
Value may be 0.0 to 100.0.
Declaration
public virtual double DocCountPercent { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
TermCountCutoff
Declaration
public virtual int TermCountCutoff { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
AddClause(BooleanQuery, Term, Int32, Single, TermContext)
Declaration
protected override void AddClause(BooleanQuery topLevel, Term term, int docFreq, float boost, TermContext states)
Parameters
Overrides
Lucene.Net.Search.TermCollectingRewrite<Lucene.Net.Search.BooleanQuery>.AddClause(Lucene.Net.Search.BooleanQuery, Lucene.Net.Index.Term, System.Int32, System.Single, Lucene.Net.Index.TermContext)
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTopLevelQuery()
Declaration
protected override BooleanQuery GetTopLevelQuery()
Returns
Overrides
Lucene.Net.Search.TermCollectingRewrite<Lucene.Net.Search.BooleanQuery>.GetTopLevelQuery()
|
Improve this Doc
View Source
Rewrite(IndexReader, MultiTermQuery)
Declaration
public override Query Rewrite(IndexReader reader, MultiTermQuery query)
Parameters
Returns
Overrides