Skip to content

[FEATURE] Autosuggest requiest count limitation #4341

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

Closed
dkd-kaehm opened this issue Apr 1, 2025 · 0 comments · Fixed by #4342
Closed

[FEATURE] Autosuggest requiest count limitation #4341

dkd-kaehm opened this issue Apr 1, 2025 · 0 comments · Fixed by #4342

Comments

@dkd-kaehm
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

If the standard EXT:solr templates are used and the auto-suggest function is enabled, the server may be overloaded with requests and become overwhelmed.

If the search input field has the focus and something is accidentally placed on the keyboard, causing a key with auto-repeat to be pressed, the input field will fill with an endless string, for which a request is sent to the server after each change (=each additional character). These requests are generated faster than they can be processed => the server becomes overloaded.

Describe the solution you'd like
Limit the input field with maxlength="50".
After 50 characters, no further changes are made to the search text, and no further requests for search suggestions are made.

Please implement this limit in the extension's default templates
or restrict/allow the AJAX script to be restricted (e.g., minimum/maximum number of characters for autosuggest, minimum time interval for requests, etc.).

Describe alternatives you've considered
Do the limitation on server side...

Additional context
Internal Redmine: #215471

Target versions
All supported

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

Successfully merging a pull request may close this issue.

1 participant