# Delete Duplicate id documents in Search Result

**URL:** <https://discuss.elastic.co/t/delete-duplicate-id-documents-in-search-result/317190>\
**Category:** Elasticsearch\
**Created:** [October 21, 2022, 11:10am UTC](https://discuss.elastic.co/t/delete-duplicate-id-documents-in-search-result/317190 "2022-10-21T11:10:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manupoti](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@manupoti](https://discuss.elastic.co/u/manupoti)\
**Post date:** [October 21, 2022, 11:10am UTC](https://discuss.elastic.co/t/delete-duplicate-id-documents-in-search-result/317190/1 "2022-10-21T11:10:02Z")

</div>

1.Created two indexes and with same alias name  
2.Inseart document with \_id in "doc1" index with alias  
3.Insert same document with same \_id in "doc2" with alias  
4.Search with \_id and Search result should return only one document with latest updated time stamp document.

I have developed aggregations and able to see duplicate documents but need to remove those duplicate documents from search result

Please help me how can we delete the duplicate documents from search result

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 23, 2022, 11:14pm UTC](https://discuss.elastic.co/t/delete-duplicate-id-documents-in-search-result/317190/2 "2022-10-23T23:14:11Z")

</div>

Welcome to our community! 😃

It'd be useful if you could share the requests that you ran for your steps, and the response of the query where you see the duplicates.

---

<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:** [November 20, 2022, 11:14pm UTC](https://discuss.elastic.co/t/delete-duplicate-id-documents-in-search-result/317190/3 "2022-11-20T23:14:51Z")

</div>

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