How to get search suggestions?

I am looking to build kind of search suggestions as shown in the image attached. I already looked into the suggesters but I am not sure if that is the solution for it. because I can create suggesters based on an indexed field like product name but output in the image isnt product name indeed. So what could it be? Some manual created labels?

or are they results from statistics? Is it even posisble to query statistics like suggesting "most searched words"? I guess google is also doing something like that

This isn't something that can be given in a simple answer. You need to look at thing like analysers, ngrams and more.

Maybe have a look at https://www.elastic.co/guide/en/elasticsearch/guide/master/languages.html

1 Like