Sort results based on the number of highlights?

Is there a way to sort the search results based on the number of highlighted words per document?

I'm using the highlight feature on a multi_match search and I want to have the results with the most matching highlights on top of the list. Is it possible?

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