Question

So my customers tend to be more so individuals who are not computer literate and often make errors when searching for our products. What is the best way to work out what they're trying to search for and serve it to them? Preferably for free. I'm not asking for module recommendations necessarily if there's code in Magento 2 that I can go in and edit to serve this purpose, that would be most ideal. What is the best way to get this functionality implemented in to my search bar?

EDIT: I'm gonna go with Piyush's replies in the comments, i'm not even allowed to use a third party extension I asked my boss. Instead i'm going to code it based on the github links Piyush left me in reply to this question.

Was it helpful?

Solution

May be you are looking for Auto Complete Search. If you are looking for reference code you can check below github Modules

  1. Link 1
  2. Link 2

OTHER TIPS

In magento 2 it does provide this feature which is called "Search Synonyms"

See this link to setup your search synonym.

It does facilitate you to add related words (which we can say alternative words or spelling mistake words).

For eg:

you are selling hoodie while some customer calls it hodie or sweatshirt or sweat shirt so you can create a synonym group for this like: sweatshirt, sweat shirt, hoodie, fleece, hodie.

Maybe should you give a try at ElasticSuite that handle spelling mistakes and phonetic search out-of-the-box among many other valuable features => https://github.com/Smile-SA/elasticsuite.

Disclosure : I am ElasticSuite architect and lead developper.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top