Closed cptX closed 1 year ago
Hello @cptX
can you ensure to do a cache:clean and a reindex now that you have 2.10.12.1 version ?
Once it's done, please share again the settings and the mapping of your catalog_product_index.
Regards
Hi @romainruaud ,
after 2 days, having restarted my computer twice, and having added several new products I have some different behavior: Test 1: search for mispelled word "κώρνα": Previously: no result is shown > Now: result shows the wanted product with the message: "No exact results found for: 'κώρνα'. The displayed items are the closest matches.". Is this the expected behavior for spell correction? Test 2: search for correctly spelled "ηλεκτρική": Previously: No exact results found for: 'ηλεκτρική'. > Now: 1 exact result found! (So this now works as expected) Test 3: Search for the word "κορνΑ". Still I get no results! In my opinion every search should be independent of lower or upper case characters!
New Test 4: Searching for word "ιλεκτρική" with the first letter mispelled (correct word is "ηλεκτρική" and exists in a product as shown in test 2) gives no results! So spelling correction is not working at the moment!
Please take the new results into account and tell me if you need extra information or tests. Can you please explain why there results were so different in my first tests even if I had tried cache:clear and reindex several times? Why restarting the computer or elasticsearch service makes a difference?
Hello @cptX,
Concerning
New Test 4: Searching for word "ιλεκτρική" with the first letter mispelled (correct word is "ηλεκτρική" and exists in a product as shown in test 2) gives no results! So spelling correction is not working at the moment!
This is expected if you didn't changed the default settings for fuzziness/spellcheck : there is a setting which defines the "fuzziness prefix" length, ie the number of letters at the start of the word that are not supposed to be changed to find word variations. By default, its value is 1, so a typo on a first letter will not lead to fuzzy matches.
Regards
@rbayet thanks for your answer! This explains a lot and helps me understand better. But still I think the issue is not only with the first letter! For example if I search for "ηλεκτρηκη" instead of the correct "ηλεκτρικη" I get no results!
I'm closing this, we've done our maximum on this, we could probably engage more time in the eventuality of having a customer paying for it.
But as part of the Open Source version, we've been engaging a lot already.
regards
Unreliable searching in Greek Language:
Preconditions
Magento Version : 2.4.5 CE ElasticSuite Version : 2.10.12.1 (This patch version was created after realizing autocorrect and search were not working in greek without accents) Environment : Developer Third party modules : none
Steps to reproduce
Actual result
Test 1: search for mispelled word "κώρνα": no result is shown
Test 2: search for correctly spelled "ηλεκτρική": No exact results found for: 'ηλεκτρική'. The displayed items are the closest matches. Product is shown as suggestion but why "No exact results found"? The word is written exactly like that!
Test 3: Search for the word "κορνΑ". Autocomplete correctly matches and suggests the product but search produces no results!
Expected result
Test 1: