Ian,
I think you're right. Boolean query is what I am looking for.
Thanks.
On 3/25/11 6:04 AM, "Ian Lea" wrote:
>You'd be better off building a BooleanQuery.
>
>BooleanQuery bq = new BooleanQuery();
>bq.add(new TermQuery(...), ...);
>bq.add(new FuzzyQuery(...),. ...);
>etc
>
>See BooleanClause
You'd be better off building a BooleanQuery.
BooleanQuery bq = new BooleanQuery();
bq.add(new TermQuery(...), ...);
bq.add(new FuzzyQuery(...),. ...);
etc
See BooleanClause.Occur for options on MUST, SHOULD etc.
--
Ian.
On Thu, Mar 24, 2011 at 5:48 PM, Deepak Konidena
wrote:
> Hi,
>
> I am us