Open dkoether opened 4 weeks ago
EXT:solrs suggest-service uses "facet"-approach.
The spell and other text-fields using <tokenizer class="solr.StandardTokenizerFactory"/>
do not fit that case.
See: https://solr.apache.org/guide/solr/latest/indexing-guide/tokenizers.html#standard-tokenizer
There is a field wanted which combines following on index analyzer-config:
<tokenizer class="solr.ClassicTokenizerFactory"/>
See: https://solr.apache.org/guide/solr/latest/indexing-guide/tokenizers.html#classic-tokenizer
1.1. (Optional) Synonyms + Stop filter. If applied, then field is language dependent.<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="32" preserveOriginal="true"/>
See: https://solr.apache.org/guide/solr/latest/indexing-guide/tokenizers.html#edge-n-gram-tokenizerPlease add that field via pull-request. I'll change the tracker from bug to feature.
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!