> Thanks for the hint, so this could be done by overriding getBooleanQuery() in
> QueryParser ?
>
I think something like this should do the trick. Without overriding anything.
Query query= QueryParser.parse("User Entered String");
if (query instanceof BooleanQuery)
((BooleanQuery)query).setMinimumNumberShouldMatch(3);
You can steal code from solr too, ( e.g. how to calculate mm and optional
clause count etc.)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]