# Is there any way to de-duplicated documents based on the field?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-de-duplicated-documents-based-on-the-field/35806>\
**Category:** Elasticsearch\
**Created:** [November 28, 2015, 3:01pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-de-duplicated-documents-based-on-the-field/35806 "2015-11-28T15:01:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanchou1991](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@ryanchou1991](https://discuss.elastic.co/u/ryanchou1991)\
**Post date:** [November 28, 2015, 3:01pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-de-duplicated-documents-based-on-the-field/35806/1 "2015-11-28T15:01:33Z")

</div>

The following were the use cases

> <https://stackoverflow.com/questions/25448186/remove-duplicate-documents-from-a-search-in-elasticsearch>

> <https://stackoverflow.com/questions/29886477/how-to-remove-duplicate-search-result-in-elasticsearch>

I need to de-duplicate the documents based on a specified field. Meanwhile I noticed the post filter which could filter the search results on hits, while it seems doesn't make any sense to my case.

Could anyone could offer me some suggestions on it? or Elasticsearch plan to provide some solutions on that?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:35pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-de-duplicated-documents-based-on-the-field/35806/2 "2017-07-05T23:35:12Z")

</div>


