Hi Daniel,
I’ve located the problem. I’m adding an asterisk in front of the search term and at the end. I’m doing this because when the user searches for «Medien» also related words like «Printmedien» or «Medienproduktion» should be found. If there are no asterisks these word’s won’t be found. This is a specification from our marketing.
This is how I add the asterisks:
searchTerm = ${'*' + request.arguments.search + '*'}
Unfortunately this does not work with the search term «Qualität» and I don’t know why. If I remove my “asterisk adding” and add the asterisks manually into the search input it behaves like this:
medien
Pages with «Medien» or «Medien» with a hyphen in front of / at the end of the search term will be found.
*medien*
Everything will be found. «Medien», «Medienproduktion», «Printmedien», …
medien*
Pages with «Medien» and e.g. «Medienproduktion» will be found.
*medien
Pages with e.g. «Printmedien» and «Medien» will be found.
qualität
Pages with «Qualität» or «Qualität» with a hyphen in front of / at the end of the search term will be found.
*qualität*
No results.
*qualität
No results. Even though e.g. the word «Proofqualität» exists.
qualität*
Pages with «Qualität» and e.g. «Qualitätssicherung» will be found.
When I access Elasticsearch via Browser and e. g. enter «localhost:9200/_search?q=*qualität» he find’s a total of 94 hits and words like «Qualität», «Qualitätssicherung» and «Proofqualität». But searching with the same search term in the Neos frontend ends up in no results.
I’m wondering why are the results so different? Why will I find everything with «medien» but not everything with «qualität»? I cant believe that I’m the only one with this problem. How do you (or others) deal with this?
We’re using Neos 4.3 and Elasticsearch 5.6.16 and the standard configuration. I’ve also re-indexed the data.