David, Any document that matches a MUST_NOT clause will not match the BooleanQuery. By definition.
This means that "maximumNumberMustNotMatch" is effectively hardcoded to zero. -Greg On Wed, Apr 16, 2014 at 3:59 PM, David Stimpert <d...@genomoncology.com>wrote: > Hello, > I have found useful functionality in BooleanQuery which allows me to > specify a minimum number of matching optional terms > (i.e. setMinimumNumberShouldMatch). I do not, however, see similar > functionality available for setting the maximum number of MUST_NOTs (i.e. > setMaximumNumberMustNotMatch). I am starting to look into how I could > customize this functionality. Does this seem feasible? Do you foresee any > major challenges? Any advice? >