# Remove duplicate \_id from difference index

**URL:** <https://discuss.elastic.co/t/remove-duplicate--id-from-difference-index/22053>\
**Category:** Elasticsearch\
**Created:** [February 10, 2015, 3:09am UTC](https://discuss.elastic.co/t/remove-duplicate--id-from-difference-index/22053 "2015-02-10T03:09:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Udomsak\_Donkhampai\_2](https://avatars.discourse-cdn.com/v4/letter/u/3ec8ea/32.png) [@Udomsak\_Donkhampai\_2](https://discuss.elastic.co/u/Udomsak_Donkhampai_2)\
**Post date:** [February 10, 2015, 3:09am UTC](https://discuss.elastic.co/t/remove-duplicate--id-from-difference-index/22053/1 "2015-02-10T03:09:03Z")

</div>

I have 2 indexes that might have same object id, but it will have one  
that have \_version higher.  
In ES, Do it have some script of setting that help manage this kind of  
problem?

because I want to keep only highest \_version document.

Thanks,  
Udomsak

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6c33ecdd-70d8-46b0-b855-99fbec2e5dfb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6c33ecdd-70d8-46b0-b855-99fbec2e5dfb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:34am UTC](https://discuss.elastic.co/t/remove-duplicate--id-from-difference-index/22053/2 "2017-07-06T00:34:02Z")

</div>

Closed on July 6, 2017, 12:34am UTC


