Problem/Motivation
'Maximum number of items in Autocomplete' configuration is not giving correct results.
Steps to reproduce
Set value of 'Maximum number of items in Autocomplete' to 10 and observe the autosuggestion results. Result should show 10 suggestions as per the configuration. Its showing incorrect result.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | maximum_autocomplete_items-3166007-6.patch | 3.89 KB | jelle_s |
Comments
Comment #2
renukakulkarni commentedFixed this issue temporarily with this patch attached.
Comment #3
boromino commentedThe module applies the maximum number of items on the view that retrieves the autocomplete results. As these may query for items other than that in the autocomplete filter, the number is not correct. This patch applies the maximum number on the matches for the autocomplete filter.
Comment #4
boromino commentedComment #5
boromino commentedThe pager has to remain and be set to zero for some special cases.
Comment #6
jelle_sReroll of #5.
Comment #7
vasikeIt's a known issue if we have duplicate values.
I'm afraid the patches here could not be considered here.
As it's not desired to make a query for "millions" of results ... which actually is possible if the limit is empty.
But if someone decides a limit is needed ... then query limit is desired.
However we could:
- Add info to project about this https://www.drupal.org/project/views_autocomplete_filters/issues/3387912...
- And maybe try to have this altering solution ... maybe it could help in such cases
https://www.drupal.org/project/views_autocomplete_filters/issues/3393550