Hi,
I want to create a boolean query like:
'book' AND ( 'fred' OR 'ginger')
Anyone know how I can do the above in a BooleanQuery. I tried this:
but it does not work.
TermQuery t1 = new TermQuery(new Term("type","book"));
TermQuery t2 = new TermQuery(new Term("author","fred"));
TermQuery t3 = new TermQuery(new Term("title","ginger"));
BooleanQuery q = new BooleanQuery();
q.add(t3,false,false);
q.add(t2,false,false);
q.add(t1,true,false);
thx.
Steve.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]