# Cross Cluster Search without modifying existing query

**URL:** <https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [September 3, 2021, 4:53am UTC](https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235 "2021-09-03T04:53:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yestoprince](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yestoprince/32/94122_2.png) [@yestoprince](https://discuss.elastic.co/u/yestoprince)\
**Post date:** [September 3, 2021, 4:53am UTC](https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235/1 "2021-09-03T04:53:20Z")

</div>

Hi,

I have two clusters one is "Cluster A" and other is "Cluster B".

To perform search on cluster A, I am using below query:-

\< GET /test\_index/\_search  
{  
"query":{  
"match\_all":{}  
}  
} /\>

But to search across multiple clusters, I have to modify query to this :-

\< GET /test\_index,remote\_cs2:test\_index/\_search  
{  
"query":{  
"match\_all":{}  
}  
} /\>

Is there any other way to search across across multiple clusters without modifying my first query ?  
Because in this way i have to make lot many changes in the queries which i want to avoid.

Could some one please help me with this, i can provide you more information if you need.

---

<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:** [October 1, 2021, 4:53am UTC](https://discuss.elastic.co/t/cross-cluster-search-without-modifying-existing-query/283235/2 "2021-10-01T04:53:58Z")

</div>

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