Facet filtering with negative conditions #111
Locked
Kerollmops
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment
-
Locking this old discussion. 📚 https://docs.meilisearch.com/learn/advanced/filtering_and_faceted_search.html#filter-expressions |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Facet filtering would be really useful when you want the engine to ignore certain documents.
For example you want to mark documents as read by given users, you therefore want to maintain a list of users ids in each of the documents. This users ids can be used to skip these documents, they represent the users ids who already read the documents.
Describe the solution you'd like
There is two ways of fixing this, usings filters and using facet filtering:
NOT (read_by_users CONTAINS my_id)
).["-read_by_users:my_id"]
).The second option would be way more performant than the first solution I described.
Beta Was this translation helpful? Give feedback.
All reactions