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: Boolean Search Query is not workng

2015-01-23 Thread Nitin Kothwal
Hi Priyanka Construct three different termqueries for house, home and flat. Now for first two termqueries you can set boost on them by setBoost(float b) method of TermQuery class. Now above three termqueries will be clauses of your boolean query, with OCCUR.SHOULD and search in normal way. Thi