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

Where to configure Ngram? #597

petrich opened this Issue Nov 2, 2017 · 1 comment


None yet
2 participants

petrich commented Nov 2, 2017

Dear @ALL

can someone help me, i'm looking where to enable/configure ngram search in the frontend (autocomplete search)

Could not find it.

Thank you for any help/tips



This comment has been minimized.


afoucret commented Nov 6, 2017

We do not use the ngram search to bring the autocomplete feature.

In the past we were used to but we decided it was not precise enough and we are now using the following method :

  1. We try to detect popular searches that match the use query (eg : if the user type ap -> "apple", "apple juice" and "apple pie")

  2. We run a query for all products that match "apple", "apple juice" or "apple pie". The hits are suggested products and some aggregation are used to suggest relevant attributes

  3. We do the same with categories

This method is not perfect, since it have to learn for popular queries and the result can be disapointing in the early days (cold start). But after few days the result is quite good and the relevance / precision is better than when you are using ngram (especially it is easier to deals with mispelling and fuzziness without sacrificing precision).

So, enabling/configuring ngram is not something you can do without coding it into ElasticSuite.

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