lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Kothwal <nitin.koth...@sarvaha.com>
Subject Re: combine to MultiTermQuery with OR
Date Wed, 11 Feb 2015 06:23:03 GMT
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 combined with "OR"
operator.
>   
> so in lucene Syntax i want  to search
>   
> FieldA:Term1 OR FieldB:Term1,   FieldA:Term2 OR FieldB:Term2, FieldA:Term3 OR FieldB:Term3...
>   
> how can i do this?
>   
> greetings
> sascha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message