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 <r...@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
>

Reply via email to