Elasticsearch top hits aggregation not working as expected.
This post has NOT been accepted by the mailing list yet.
I am running the below query and want to retrieve top hits per bucket. But I see multiple docs per bucket in few cases. I want only one document per bucket returned. Can some one review the query and suggest.