# Elasticsearch CCS: Will request be sent to all clusters when I specify the cluster?

**URL:** <https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161>\
**Category:** Elasticsearch\
**Created:** [February 20, 2019, 8:27am UTC](https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161 "2019-02-20T08:27:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luxiaoxun](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@luxiaoxun](https://discuss.elastic.co/u/luxiaoxun)\
**Post date:** [February 20, 2019, 8:27am UTC](https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161/1 "2019-02-20T08:27:39Z")

</div>

ES version: 6.2.4  
I have same index which named "index-aa" in both clusterA and clusterB.  
Normally I use the address of clusterA to do "cross cluster search" to get data from "index-aa", Use "\*:index-aa" to get data both from clusterA and clusterB.  
But sometimes I will specify the cluster name "clusterA:index-aa", just to get data from clusterA. My question is: will the request be sent to clusterB also? ES client is smart enough to check how many clusters should be searched (To save the network bandwidth)?  
Thanks.  
@javanna

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [February 20, 2019, 8:59am UTC](https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161/2 "2019-02-20T08:59:17Z")

</div>

Hi,  
when you specify the alias of a specific cluster, the request will only go to such cluster, there won't be any request going to the other clusters.

Cheers  
Luca

---

<div class="post-metadata">

**Author:** ![luxiaoxun](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@luxiaoxun](https://discuss.elastic.co/u/luxiaoxun)\
**Post date:** [February 20, 2019, 9:13am UTC](https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161/3 "2019-02-20T09:13:19Z")

</div>

That's great! Thanks.

---

<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:** [March 20, 2019, 9:13am UTC](https://discuss.elastic.co/t/elasticsearch-ccs-will-request-be-sent-to-all-clusters-when-i-specify-the-cluster/169161/4 "2019-03-20T09:13:27Z")

</div>

Closed on March 20, 2019, 9:13am UTC

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