How to fetch the distinct records from Elastic Search. Eg: field1 field2 field31 abc xyz 2 abc def 3 abc pqr Now,iam searhing for xyz OR def OR pqr.For these records field2 value is same. now,Iam getting the 3 records(abc,abc,abc). But,I need only one record(abc). Without iterating the searchHits. In SearchHits it should consists only distinct records.How,can i query for getting the distinct Results. Please help me. Thanks in Advance.