lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: XOR?
Date Wed, 16 Aug 2006 14:27:31 GMT
It is also possible to create a subclass of BooleanQuery which  
overrides the similarity function and returns 0 for coord() when the  
overlap is > 1.

	Erik


On Aug 16, 2006, at 10:14 AM, Yonik Seeley wrote:

> On 8/16/06, Fernando Mato Mira <matomira@gmail.com> wrote:
>>   How would one do a XOR query with Lucene?
>
> There's not a specific XOR operation, but you shouldbe able to make it
> out of AND, OR, and NOT.
>
> +(A B) -(+A +B)
>
>
>
> -Yonik
> http://incubator.apache.org/solr Solr, the open-source Lucene  
> search server


Mime
View raw message