peerbit icon indicating copy to clipboard operation
peerbit copied to clipboard

Not-equal-to compare queries

Open threshold862543 opened this issue 2 years ago • 1 comments

Something that could be useful is adding Compare.NotEqual to FieldBigIntCompareQuery, to find all documents where the value of the given field is not equal to the specified value.

Something analogous could also be useful with FieldStringMatchQuery.

threshold862543 avatar Jan 29 '23 18:01 threshold862543

Yes this make sense. I start to think about whether queries should be able to be nested, like then you can wrap everthing in a "not", like

not( property x match "abc" and property z < 123)

then you can negate any query (e.g. also negate the '$in' the other issue you created #46)

marcus-pousette avatar Jan 29 '23 20:01 marcus-pousette