lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Brown <...@intelcompute.com>
Subject Re: Delete by query, including negative filters
Date Sat, 09 Apr 2016 14:45:25 GMT
Thanks Erick,

The *'s were accidental, if that makes any difference whatsoever.




On 09/04/16 15:42, Erick Erickson wrote:
> Should work, or
> -merchant_id:(12345 OR 9876*)
>
> But do be aware that Solr is not strict boolean logic. The above is
> close enough for this purpose. Here's an excellent writeup on this
> subtlety:
>
> https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/
>
> Best,
> Erick
>
> On Sat, Apr 9, 2016 at 3:51 AM, Robert Brown <rob@intelcompute.com> wrote:
>> Hi,
>>
>> I have this delete query: "*partner:pg AND market:us AND last_seen:[* TO
>> 2016-04-09T02:01:06Z]*"
>>
>> And would like to add "AND merchant_id != 12345 AND merchant_id != 98765"
>>
>> Would this be done by including "*AND -merchant_id:12345 AND
>> -merchant_id:98765*" ?
>>
>> Thanks,
>> Rob
>>


Mime
View raw message