Add way to case-sensitive string filtering #418
Locked
LukasKalbertodt
started this conversation in
Feedback & Feature Proposal
Replies: 2 comments 2 replies
-
Hi @LukasKalbertodt 👋 Why case sensitivity is critical here? Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey @LukasKalbertodt 👋 I'm locking that discussion in favor of #555 Thank you! |
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
-
Equality filters on strings work case-insensitively. This is useful for many cases, but case-sensitive matching is important as well. The docs even mention a use case:
That's also the case for us. Specifically, each item in the index has a list of roles attached to it (a string array). Each user also has a list of roles. A specific user can view a specific item iff at least one of the user's role is inside the item's roles. This can almost be implemented with Meili, if it weren't for the case insensitive check. Roles must certainly be checked case sensitively.
Possible workarounds: doing the filtering in our backend after receiving all results OR encoding the roles somehow, e.g. as hex string. Both options are obviously not great.
So yeah, it would be really great if Meili could filter case sensitively!
Beta Was this translation helpful? Give feedback.
All reactions