Retrieving distinct values of a field


I would like to retrieve only the distinct values of a particular field in elasticsearch query. For instance, my search term is resulting into same user multiple times.I would like to have a particular user's info only once. What should be the way to achieve it?
Looking for suggestions/help.


Try Field Collapsing ?

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