Re: Hopfully simple question constructing BooleanQuery

2009-12-14 Thread Jacob Rhoden
Exactly what I was trying to do. Thanks. On 15/12/2009, at 4:25 PM, TCK wrote: How about the following? BooleanQuery bq1 = new BooleanQuery(); bq1.add(new PrefixQuery(new Term("heading",word)),BooleanClause.Occur.SHOULD); bq1.add(new PrefixQuery(new Term("attribute",word)),BooleanClause.Occur.

Re: Hopfully simple question constructing BooleanQuery

2009-12-14 Thread TCK
How about the following? BooleanQuery bq1 = new BooleanQuery(); bq1.add(new PrefixQuery(new Term("heading",word)),BooleanClause.Occur.SHOULD); bq1.add(new PrefixQuery(new Term("attribute",word)),BooleanClause.Occur.SHOULD); BooleanQuery bq = new BooleanQuery(); bq.add(bq1, BooleanClause.Occur.MUS

Hopfully simple question constructing BooleanQuery

2009-12-14 Thread Jacob Rhoden
Assume I have the following rather simple example that works fine: BooleanQuery bq = new BooleanQuery(); bq.add(new PrefixQuery(new Term("heading",word)),BooleanClause.Occur.SHOULD); bq.add(new PrefixQuery(new Term("attribute",word)),BooleanClause.Occur.SHOULD); Now I add the foll