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

Filter on partial terms with LIKE '%term%' operator #769

Open
PhasecoreX opened this issue Aug 10, 2023 · 1 comment
Open

Filter on partial terms with LIKE '%term%' operator #769

PhasecoreX opened this issue Aug 10, 2023 · 1 comment

Comments

@PhasecoreX
Copy link

Feature Request

Q A
New Feature yes
RFC no
BC Break no

Summary

When filtering, I would like to be able to filter on partial text. I see that the query generated looks like:

... WHERE p0_.name LIKE 'term'

I'd like an option for it to automatically insert percent signs, like:

... WHERE p0_.name LIKE '%term%'

I looked through the documentation, I didn't see anything like this.

Also, it seems that when submitting a filter term, if the user manually includes a % or _, it will affect the LIKE operator. Seems like these should be escaped by default, but I can see it being useful not escaped as well. Thought I'd bring it up anyway.

@garak
Copy link
Collaborator

garak commented Sep 11, 2023

The filter functionality only offers some basic features.
For any advanced needs, you should implement your logic and use the paginator only to paginate

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