QueryParser.Operator with BooleanQuery

2013-11-18 Thread Shahak Nagiel
Initially, I queried our (v4.4) index with a single MultiFieldQueryParser and  Operator.AND to ensure that all search terms appeared in the results. Since then, however, we've needed to query more flexibly, using a BooleanQuery to merge several subqueries (in order to apply different analyzers to

Re: QueryParser.Operator with BooleanQuery

2013-11-19 Thread Alan Woodward
Hi Shahak, BooleanQuery.setMinimumNumberShouldMatch might help you here. Alan Woodward www.flax.co.uk On 18 Nov 2013, at 18:35, Shahak Nagiel wrote: > Initially, I queried our (v4.4) index with a single MultiFieldQueryParser and > Operator.AND to ensure that all search terms appeared in the r