Lucene.Net 1.9.1 Class Library

BooleanQuery.SetMinimumNumberShouldMatch Method 

Specifies a minimum number of the optional BooleanClauses which must be satisifed.

By default no optional clauses are neccessary for a match (unless there are no required clauses). If this method is used, then the specified numebr of clauses is required.

Use of this method is totally independant of specifying that any specific clauses are required (or prohibited). This number will only be compared against the number of matching optional clauses.

EXPERT NOTE: Using this method will force the use of BooleanWeight2, regardless of wether setUseScorer14(true) has been called.

public virtual void SetMinimumNumberShouldMatch(
   int min
);

Parameters

min
the number of optional clauses that must match

See Also

BooleanQuery Class | Lucene.Net.Search Namespace | setUseScorer14