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 {@link #CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE} is used. Otherwise, {@link #CONSTANT_SCORE_FILTER_REWRITE} is used.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class ConstantScoreAutoRewrite : MultiTermQuery..::..RewriteMethod
Visual Basic
<SerializableAttribute> _
Public Class ConstantScoreAutoRewrite _
	Inherits MultiTermQuery..::..RewriteMethod
Visual C++
[SerializableAttribute]
public ref class ConstantScoreAutoRewrite : public MultiTermQuery..::..RewriteMethod

Inheritance Hierarchy

See Also