A rewrite method that first translates each term into {@link BooleanClause.Occur#SHOULD} clause in a BooleanQuery, and keeps the scores as computed by the query. Note that typically such scores are meaningless to the user, and require non-trivial CPU to compute, so it's almost always better to use {@link #CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} instead.

NOTE: This rewrite method will hit {@link BooleanQuery.TooManyClauses} if the number of terms exceeds {@link BooleanQuery#getMaxClauseCount}.

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

Syntax

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

See Also