seperman / fast-autocomplete

Fast Autocomplete: When Elastcsearch suggestions are not fast and flexible enough
MIT License
271 stars 40 forks source link

Feedback for most frequently searched #9

Closed rishi7 closed 5 years ago

rishi7 commented 5 years ago

Firstly, great library! Thanks!

My question is around, how do I give the feedback on which search term was searched most so that it gets prioritised in results?

If I have to choose from your example, how do I give preference to alfa romeo 4c instead of alfa romeo giulia because it was more searched?

In other words i want alfa romeo 4c to show first in the list because it was searched or selected more. How do I make that happen with some kind of a feedback system?

seperman commented 5 years ago

Hi @rishi7 I added some example and unit tests that you can look at. https://github.com/wearefair/fast-autocomplete#sorting

rishi7 commented 5 years ago

Thanks!