Query to get all records with top score


#1

I have a match query which returns 10 documents.
6 having score "10.0" and 4 having having score "8.0".

Query:
I want to have an ability in same match query that should return all documents with top score only i.e. "10.0". All with score "8.0" should not be returned in the query.

Any suggestions ?


(Mayya Sharipova) #2

You can nest your original match query within a min_score query, specifying the minimum score that a document must have to be returned.


(system) closed #3

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