Is there distinct like query in elastic search?

I have duplicate documnets with distinct ids in my index but I want to get
the result for the lowest value of ids.
like we have sql query select distinct name from table. Is there a such a
query in elasticsearch

This functionality is not implemented yet

On Wednesday, April 18, 2012 2:49:33 AM UTC-4, jajoria abhishek wrote:

I have duplicate documnets with distinct ids in my index but I want to get
the result for the lowest value of ids.
like we have sql query select distinct name from table. Is there a such a
query in elasticsearch