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

Sanitize/normalize search queries before checking the cache #8382

Open
isoos opened this issue Dec 10, 2024 · 1 comment
Open

Sanitize/normalize search queries before checking the cache #8382

isoos opened this issue Dec 10, 2024 · 1 comment

Comments

@isoos
Copy link
Collaborator

isoos commented Dec 10, 2024

The current search result cache logic uses the user-provided input query as part of the key. However, if the use adds random spaces or other filtered characters, we may use the same search terms eventually, but would fail to hit the cache on them.

@sigurdm
Copy link
Contributor

sigurdm commented Dec 10, 2024

Could we also sort the search terms as part of normalization?

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

No branches or pull requests

2 participants