# Find duplicate

**URL:** <https://discuss.elastic.co/t/find-duplicate/32991>\
**Category:** Elasticsearch\
**Created:** [October 26, 2015, 1:47pm UTC](https://discuss.elastic.co/t/find-duplicate/32991 "2015-10-26T13:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodermax](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kodermax](https://discuss.elastic.co/u/kodermax)\
**Post date:** [October 26, 2015, 1:47pm UTC](https://discuss.elastic.co/t/find-duplicate/32991/1 "2015-10-26T13:47:16Z")

</div>

I have a new task find duplicates in contacts.  
I have a store of contacts in ElasticSearch

```
contact : {
  name : 'Peter",
  emails: ["test@test.ru","test@gmail.com"],
  phones: [3242343,4234324]
}

```

Can i find duplicate contacts using ElasticSearch?

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [October 26, 2015, 4:07pm UTC](https://discuss.elastic.co/t/find-duplicate/32991/2 "2015-10-26T16:07:39Z")

</div>

aggregate on the three fields, setting `min_doc_count` to 2 on the sub-sub-aggregation field?

---

<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:42pm UTC](https://discuss.elastic.co/t/find-duplicate/32991/3 "2017-07-05T23:42:39Z")

</div>


