lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wettin <karl.wet...@gmail.com>
Subject Re: boolean query or
Date Wed, 09 Jul 2008 08:01:10 GMT

9 jul 2008 kl. 07.37 skrev Cam Bazz:

> Hello,
>
> Is it possible to make a boolean query where a word is equal to  
> fieldA or
> fieldB?
>
> in other words, I like to search a word in two fields, if word  
> passes in
> fieldA or fieldB, then it is a hit.

XOR?

+(A B) -(+A +B)


        karl

---------------------------------------------------------------------
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