Aw: Re: Re: combine to MultiTermQuery with OR

2015-02-11 Thread Sascha Janz
Query(); > bquery.add(queryFieldA, BooleanClause.Occur.SHOULD); > bquery.add(queryFieldB, BooleanClause.Occur.SHOULD); > > this is the correct way? > > > Gesendet: Dienstag, 10. Februar 2015 um 17:31 Uhr > Von: "Ian Lea" > An: java-user@lucene.apache.org > Betreff: Re:

Re: combine to MultiTermQuery with OR

2015-02-10 Thread Nitin Kothwal
Hi sascha, You can do with boolean query, Take your three queries and OR them with boolean clause Occur.should. -Nitin On Tuesday 10 February 2015 08:58 PM, Sascha Janz wrote: Hi, i want to combine two MultiTermQueries. One searches over FieldA, one over FieldB. Both queries should be

Re: Re: combine to MultiTermQuery with OR

2015-02-10 Thread Ian Lea
gt; bquery.add(queryFieldA, BooleanClause.Occur.SHOULD); > bquery.add(queryFieldB, BooleanClause.Occur.SHOULD); > > this is the correct way? > > > Gesendet: Dienstag, 10. Februar 2015 um 17:31 Uhr > Von: "Ian Lea" > An: java-user@lucene.apache.org > Betreff: Re: combine to

Aw: Re: combine to MultiTermQuery with OR

2015-02-10 Thread Sascha Janz
endet: Dienstag, 10. Februar 2015 um 17:31 Uhr Von: "Ian Lea" An: java-user@lucene.apache.org Betreff: Re: combine to MultiTermQuery with OR org.apache.lucene.search.BooleanQuery. -- Ian. On Tue, Feb 10, 2015 at 3:28 PM, Sascha Janz wrote: > > Hi, > > i want to combine tw

Re: combine to MultiTermQuery with OR

2015-02-10 Thread Ian Lea
org.apache.lucene.search.BooleanQuery. -- Ian. On Tue, Feb 10, 2015 at 3:28 PM, Sascha Janz wrote: > > Hi, > > i want to combine two MultiTermQueries. > > One searches over FieldA, one over FieldB. Both queries should be combined > with "OR" operator. > > so in lucene Syntax i want to searc