# Prefix on cross cluster search

**URL:** <https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [February 11, 2019, 10:36am UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825 "2019-02-11T10:36:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amita](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Amita](https://discuss.elastic.co/u/Amita)\
**Post date:** [February 11, 2019, 10:36am UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825/1 "2019-02-11T10:36:25Z")

</div>

Hi,  
I have a system that containe 5 clusters in 6.2.4.  
4 clusters which containe data, and one cluster which have three coordinating nodes.  
I use the option of cross cluster search in order to search from the coordinating cluster on all the other four, and return one result.  
I configure the coordinating cluster in the following way:  
Cluster\_one:  
Seeds:a,b,c  
Cluster\_two:  
Seeds:d,e,f  
Cluster\_three:  
Seeds:g,h,i  
Cluster\_four:  
Seeds:j,k,l

When i want to search, i execute a search on fhe coordinating cluster in the folowing order:  
Cluster\_\*:\<name\_of\_the\_index\>

I got a good results, but when i execute a search like that:  
Cluster\ __:\<name\_of\_an\_index\_in\_cluster\_one\>, Cluster\__ :\<name\_of\_an\_index\_in\_cluster\_two\>

I got zero results.

Thanks in advance.

---

<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 15, 2019, 10:28am UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825/2 "2019-02-15T10:28:24Z")

</div>

> [@Amita](#):
>
> Cluster\_ _:\<name\_of\_an\_index\_in\_cluster\_one\>, Cluster\__ :\<name\_of\_an\_index\_in\_cluster\_two\>

When you use `Cluster_:<name_of_an_index_in_cluster_one>, Cluster_:<name_of_an_index_in_cluster_two>` , I think you should specify the complete cluster alias rather than just `Cluster_`. Otherwise add a wildcard like you did in the previous attempt. If there's no remote cluster matching a prefix, we treat the index like a local index. Hopefully that is the problem.

Cheers  
Luca

---

<div class="post-metadata">

**Author:** ![Amita](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Amita](https://discuss.elastic.co/u/Amita)\
**Post date:** [February 16, 2019, 9:09pm UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825/3 "2019-02-16T21:09:46Z")

</div>

I am sorry, i forgot to mention that i use wildcard in here also.  
Cluster\ __:\<name\_of\_an\_index\_in\_cluster\_one\>, Cluster\__ :\<name\_of\_an\_index\_in\_cluster\_two\>

---

<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 16, 2019, 9:10pm UTC](https://discuss.elastic.co/t/prefix-on-cross-cluster-search/167825/4 "2019-03-16T21:10:00Z")

</div>

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