No hits on "fitbit" when searching for "fit bit" #3033
-
Hi, On our Magento 2 (2.4.6-p1) we are using the ElasticSuite (2.11.3.2) for search. Works great, except for one thing, and I can't get my head around it. When people search for "fit bit", they should get the product with the name "fitbit" as a hit, but it returns no results. Any clues where I need to look next? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ok, the example 'fitbit' vs 'fit bit' isn't a good one in our situation. Digging deeper I found a possible reason why it's not working. It's actually a Dutch website, the real examples are 'graszaad' vs 'gras zaad' (doesn't work), 'houtpellets' vs 'hout pellets' (doesn't work) and 'grasmaaier' vs 'gras maaier' (WORKS!). |
Beta Was this translation helpful? Give feedback.
Hello @hans-vereyken-arvesta,
Concerning your initial issue, indeed you identified that reference_shingle filter of the reference analyzer is able to regroup two tokens ("fit bit" will have been tokenized into "fit" and "bit"). (Was the minimal interface for analysis in the Magento admin (Elasticsuite > System > Analysis) useful in that effect ?).
Concerning your issue with the Dutch language (you would have the same in German), we have yet to introduce a better support for compound words of germanic languages out of the box.
Basically, it would consist in using the Hyphenation decompounder token filter with both a quality hyphenation rules list and a good word_list_path.
Stack overflow t…