Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Allow more than one .ne filter in an expression to work as expected #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

matburton
Copy link

Currently if you have an event expression like example.ne(i,1).ne(i,3) then you may get events returned with i=1 because the second .ne filter overwrites the first

The same applies to metric expressions

Hopefully wrapping all $ne filters in an $and seems like acceptable behaviour even if there's only one?

@Marsup
Copy link

Marsup commented Oct 1, 2013

I'm resurrecting this PR just to tell I had the same need and implementing $nin was far easier and hopefully more optimized on mongo, hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants