You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using special characters like hyphens in the search term field no autosuggest option is provided anymore.
To Reproduce
I have several pages with several tags like "Digital-Abo" or "Digital-Ausgabe" in a Solr index.
Steps to reproduce the behavior:
I start to input my search word with the first two letters "Di"
I see several autosuggest options like 'Digital', 'Digital-Ausgabe', 'Digital-Abo".
I enter more characters and also a hyphen "Digital-" and not a single autosuggest option is provided anymore.
Terms with whitespaces are working as expected.
Expected behavior
Special characters should also be working in autosuggest feature by default.
Used versions (please complete the following information):
TYPO3 Version: 11.5.39
Browser: Chrome
EXT:solr Version: 11.5.0
Used Apache Solr Version: 8.11
PHP Version: 8.2
By default the autosuggest feature uses the field spell. I tried different field types like stringM, textM or textSpellM as there are multiple values but $results->facet_counts->facet_fields->{$suggestConfig['suggestField']} is always an empty array.
Thank you in advance!
Best regards!
The text was updated successfully, but these errors were encountered:
Please add that field via pull-request.
I'll change the tracker from bug to feature.
dkd-kaehm
changed the title
[BUG] Search words with special characters like hyphens break autosuggest feature
[FEATURE] autosuggest by words containing hyphens and other special chars
Sep 25, 2024
Describe the bug
When using special characters like hyphens in the search term field no autosuggest option is provided anymore.
To Reproduce
I have several pages with several tags like "Digital-Abo" or "Digital-Ausgabe" in a Solr index.
Steps to reproduce the behavior:
Terms with whitespaces are working as expected.
Expected behavior
Special characters should also be working in autosuggest feature by default.
Used versions (please complete the following information):
By default the autosuggest feature uses the field
spell
. I tried different field types likestringM
,textM
ortextSpellM
as there are multiple values but$results->facet_counts->facet_fields->{$suggestConfig['suggestField']}
is always an empty array.Thank you in advance!
Best regards!
The text was updated successfully, but these errors were encountered: