How to create dynamic search suggestions?


(radhe) #1

I want to show suggestion while searching. For example sentence could be like "profit of NK Store in jan compared to feb". If someone types "profit of N", I want to show every store name starting with N or every product starting with N. If someone types "profit of NK Store in J", I want to show Jan, June, July as suggestion starting with J.


(Mark Harwood) #2

That looks to be a search syntax of your own invention.
You'll need to write a custom parser that translates that language into the elasticsearch query DSL.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.