Skip to content
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

Request: Partial match on one word #1036

Closed
eddetollenaer opened this issue Aug 15, 2018 · 5 comments
Closed

Request: Partial match on one word #1036

eddetollenaer opened this issue Aug 15, 2018 · 5 comments

Comments

@eddetollenaer
Copy link

eddetollenaer commented Aug 15, 2018

Preconditions

Magento 2.2.3 with the latest Elastic Suite version

Magento Version : Magento 2.2.3 Commerce Edition

ElasticSuite Version : 2.5.11

Environment : Production Mode

Third party modules : not applicable

Steps to reproduce

  1. Search on "stofzuiger"
  2. No results are shown while there are a lot of products that have the name "robotstofzuiger" in it.

Expected result

  1. We expect to find all products that have "robotstofzuiger" in the name WITHOUT USING THE THESAURUS

Actual result

  1. No results are shown

Information for development:

It would be nice to make an option where you can say that if a word in the productname contains x% of the searchterm it should also be found as a result.

For instance:
The setting is: if 50% of a single word in the name of a product matches the search query, then show this product in the search results.

So, when you search on "stofzuiger", products with the name "robotstofzuiger" in them will be shown on the results.

@shochdoerfer
Copy link
Contributor

This seems to be related to #597.

@romainruaud
Copy link
Collaborator

Sorry but I'm not sure this is as easy as it looks, and it's not how we want to deal with the engine relevance.

"50% of a single word in the name of a product matches the search query".

Sounds good with your example stofzuiger/robotstofzuiger but I can find as many counter-examples as I want :

if I search for a "hoe", should the search engine display "shoes" ? or display "pants" when someone is searching for "pan" ? and so on ...

In my opinion, you should use a synonym between stofzuiger and robotstofzuiger if the most common term used to find "robotstofzuiger" is "stofzuiger". This is a proper use case for using synonyms with Elasticsuite.

Regards

@shochdoerfer
Copy link
Contributor

@romainruaud does the synonym look work automatically when calling \Smile\ElasticsuiteCore\Model\Search::search()? Last time I tried it, it did not seem to work, but I was not able to debug it in-depth. Maybe some mis-configuration on my side...

@romainruaud
Copy link
Collaborator

@shochdoerfer synonyms are triggered when using directly the Search model. Please create another issue if it's not the case on your instance, since this question is not related to current topic.

Regards

@romainruaud
Copy link
Collaborator

I close since it's also a duplicate of #970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants