How does search result always show on TOP of popularity search

I want to have the most matched result show and order by popularity of what people search, how should I do?

You'll need to save the popularity value somehow, like a num_views field on the documents. Then you can include that field as part of the scoring, or order by num_views

No, i don't order it, i need it more dynamically.

Did you mean customise a function score? Do you have any example ?

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