All my documents have a `uid` field with an ID that links the document to a user. There are multiple documents with the same `uid`.

I want to perform a search over all the documents returning only the highest scoring document per unique `uid`.

The query selecting the relevant documents is a simple `multi_match` query.