-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Add "Not" operator in filter to support "Not Like" etc. in Get queries #3683
Comments
Thanks for the request. Seems very related to #3319 which would likely act as a basis for this. Please upvote that one as well, to express your interest. |
For posterity (i upvoted as well), being able to negate arbitrary filters would be incredibly useful / necessary for complex logic, so i fully support this as a feature. |
Any update on this feature request? |
Any updates on this? Also, will this support negations like WHERE prop NOT ContainsAny (:excludedValues) ? Thanks! |
Hi community, we're adding a bounty to this feature request /bounty $300 Related issues for more information: |
💎 $300 bounty • WeaviateSteps to solve:
Additional opportunities:
Thank you for contributing to weaviate/weaviate! Add a bounty • Share on socials
|
/attempt #3683 refactor @litlig 's code
|
/attempt #3683 Options |
💡 @varshith257 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
💡 @litlig submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Hey Weaviate team, I drafted a solution for this a few weeks ago, but it has not been reviewed. Please take a look #4310 |
It looks like a previously faulty not operator was removed: #3360
But I can't see any way to filter a search by excluding some matching criteria. For example, I want to exclude embedded chunks that are from a particular domain name, so I want to essentially invert this Like:
So we'd be able to add a Not operator like this:
Given the implementation of Like etc. (https://github.com/weaviate/weaviate/blob/b5490142fa6cea9a6212e77055db7479e69760b7/adapters/repos/db/inverted/row_reader.go#L194C24-L194C24) it might actually be easier to implement as a new operator called NotLike, rather than a general purpose Not? I haven't looked too far into it.
In any case, it might be worth adding a note to the filter documentation to say that a Not operator isn't currently supported because it took me quite a lot of digging to confirm that I wasn't just missing something. (And I might still be!)
The text was updated successfully, but these errors were encountered: