-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings Demo Store (for partial numeric matching) #2683
Comments
Hi, to figure out my problem I test on M2.4.3-p2, latest Elasticsuite. No 3rd Party Extensions (except ElasticSuite). Sample Data is installed. What settings I have to set to receive same behaviour as demo shop please? Local System (standard settings, except Fulltext Base Settings - Minimum Should Match : 80%) Demo Shop I need same behaviour on LOCAL demo shop - how can I receive that please? Thanks and best regards Sebastian |
Hi there, I'm getting different results on local demo store M2.3.4-p2, demo data, latest ES. I try to figure out how to solve problem in first comment like that hopefully Thanks and best regards Sebastian |
Hello @Seppmann, The issue you are encountering is that by default we don't have an analyzer that separate series of digits in number in "chunk" like you seem to expect that 7713 would be indexed as "7", "77", "771" and "7713". The closest we have is the "reference" analyzer which is applied on SKUs to break alphanumeric skus into digit and letters parts, for instance "WB01" will indeed by index as "WB01" and "WB" and "01". I'm assuming the "7713" in "electric red toaster 7713" is your product name ? Regards, |
Hi @rbayet , thank you so much for your answer! You are right, we have different models/model types of products that slightly differ. Like So customers that look especially for a specific model "type" might just search for "electric red toaster 77" to get all the "77" types. I know its kind of our own logic..and so for us the expected behaviour would make sense. Thanks and best regards Sebastian |
Hello @Seppmann, Fuzziness will not be a perfect solution, since its job is to handle typographic mistakes by allowing character changes (character swaps, deletion, addition), and it will at most allow two character changes/addition in a term. But while searching for the ideal solution, you could try to :
Bear in mind that the fuzziness settings will now apply to every search term, so you might have some wonky side effects on other search queries. In the Magento 1 version of Elasticsuite, we used to have an autocomplete search allowing more partial matches, it relied on the edge n-gram tokenizer, but we moved away from that because having different results between the autocomplete and fulltext search results for the same search query is a bit perturbing (that, and performance issues). But you could try playing with the Elasticsearch analyzers, having a dedicated attribute/mapping field containing those product references and allowing for partial matching with some custom analyzers. Regards |
Hi @rbayet, thank you very much for your suggestions! I tried the fuzziness prefix/value settings but no luck. The search results wont change.. So for now I dont see how we could solve this... Thank you and best regards! |
@Seppmann did you have a look on this comment ? : #970 (comment) This seems to be the proper way to handle "partial matching" on fields. You could replicate this logic to your product field that is containing numbers. Regards |
@romainruaud Thanks a lot! I will check it out! |
I close, this question is old and has been answered. Regards |
I cannot figure out how to set ES settings so it will find more relevant products first
Search term
toaster red 77
Search results (name attribute, which has search_weight 5)
So why is search result number 4 not more relevant than result 1 to 3? All names of those product match the exact same search terms -> toaster red. Only that search result number 4 also includes search term "77" in electric red toaster 7713
I dont get why its not showing then as first result?! Any ideas?
Thank you!
The text was updated successfully, but these errors were encountered: