# Remove duplicates in cross cluster search

**URL:** <https://discuss.elastic.co/t/remove-duplicates-in-cross-cluster-search/210013>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [November 30, 2019, 3:30am UTC](https://discuss.elastic.co/t/remove-duplicates-in-cross-cluster-search/210013 "2019-11-30T03:30:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diyars1](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@diyars1](https://discuss.elastic.co/u/diyars1)\
**Post date:** [November 30, 2019, 3:30am UTC](https://discuss.elastic.co/t/remove-duplicates-in-cross-cluster-search/210013/1 "2019-11-30T03:30:45Z")

</div>

Hi,

I'm using cross cluster search and searching for a document by \_id that exists in both clusters.  
ES returns with 2 hits (1 in local index, 1 in remote index). I just want the one in the local index. How can I remove the duplicate from the remote cluster ?

Query :

GET [http://localhost:9200/index1,remote\_cluster:index1/\_search](http://localhost:9200/index1,remote_cluster:index1/_search)  
{  
"query": {  
"terms": {  
"\_id": ["123"]  
}  
}  
}

---

<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:** [December 28, 2019, 3:30am UTC](https://discuss.elastic.co/t/remove-duplicates-in-cross-cluster-search/210013/2 "2019-12-28T03:30:45Z")

</div>

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