0

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.

8
  • 1
    May be you are looking for this Autocomplete search
    – Piyush
    Feb 2, 2018 at 11:22
  • Piyush you're wonderful and thank you but is it possible to do it through code rather than installing 3rd party extensions, my employer has set a limit on the amount of 3rd party plugins i'm allowed to use, speed concerns primarily, their last Magento site had so many plugins it caused them issues before I joined
    – John
    Feb 2, 2018 at 11:24
  • 1
    anyways if you want some reference code, you can check this and this
    – Piyush
    Feb 2, 2018 at 11:30
  • 1
    @Piyush if you make your autocomplete search comment and then the github links comment in to one answer, i'll happily accept it
    – John
    Feb 2, 2018 at 12:04
  • 1
    @Piyush you should post your solution as an answer
    – 7ochem
    Feb 8, 2018 at 14:43

3 Answers 3

0

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
0

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.

1
  • 1
    I have over 100,000 products, i cannot do that for every possible search term and/or product, i think i'm going with Piyush's reply to my question
    – John
    Feb 2, 2018 at 12:02
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.