Kibana search sorting by count

How do i Sort my search results by number of keywords present in the results.
How do i do this in the discover and query?

Hey @Rishabhdeep_Singh,

This is a fairly general question, but you can look into defining a function score achieve this. Once your results are scored, you can sort on the _score field to get the results in the proper order.

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