Skip to content
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

Filtering secured field with mode-insensitive #108

Open
SerGem811 opened this issue Jun 11, 2024 · 1 comment
Open

Filtering secured field with mode-insensitive #108

SerGem811 opened this issue Jun 11, 2024 · 1 comment

Comments

@SerGem811
Copy link

Hi, thanks for your effort to provide useful library, i like it.
I can see that filtering is not supporting for contains, startWith, endWith.
But is there anyway to make it working for mode-insensitive?

I am using equals with insensitive mode, but it is also not working, so i'd love to hear your suggestion for it.

Regard

@franky47
Copy link
Member

Hi,

Unfortunately no, any kind of partial match (whether in parts of the string or case insensitivity) cannot be supported.

One possibility here though would be to store a separate field, which contains a lowercase copy of the original, and on which you apply a hash for exact matching. Upon querying, you'd lowercase the query and perform an exact match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants