A rewrite method that first creates a private Filter, by visiting each term in sequence and marking all docs for that term. Matching documents are assigned a constant score equal to the query's boost.

This method is faster than the BooleanQuery rewrite methods when the number of matched terms or matched documents is non-trivial. Also, it will never hit an errant {@link BooleanQuery.TooManyClauses} exception.

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

Syntax

C#
public static readonly MultiTermQuery..::..RewriteMethod CONSTANT_SCORE_FILTER_REWRITE
Visual Basic
Public Shared ReadOnly CONSTANT_SCORE_FILTER_REWRITE As MultiTermQuery..::..RewriteMethod
Visual C++
public:
static initonly MultiTermQuery..::..RewriteMethod^ CONSTANT_SCORE_FILTER_REWRITE

See Also