Reputation: 69
I'm learning elastic search, I wanted to ask if there is any way to get most searched results first, like: by altering the documents and updating a value of em with scores, using some kind of formula or something else
thanks community :)
Upvotes: 0
Views: 1059
Reputation: 14492
You don't have that out of the box but you can indeed modify a document and increase the number of views when a user clicks on a result then use that field as part of the score (function_score
might help for this).
Upvotes: 1