# Cross Cluster Search skip\_unavailable

**URL:** <https://discuss.elastic.co/t/cross-cluster-search-skip-unavailable/143509>\
**Category:** Elasticsearch\
**Created:** [August 8, 2018, 12:16pm UTC](https://discuss.elastic.co/t/cross-cluster-search-skip-unavailable/143509 "2018-08-08T12:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danfisk](https://avatars.discourse-cdn.com/v4/letter/d/85f322/32.png) [@danfisk](https://discuss.elastic.co/u/danfisk)\
**Post date:** [August 8, 2018, 12:16pm UTC](https://discuss.elastic.co/t/cross-cluster-search-skip-unavailable/143509/1 "2018-08-08T12:16:10Z")

</div>

I am having a little trouble working with cross cluster search.. To start with my environment is as follows: ElasticSearch 6.2.3 with Java EE client using:  
earlib 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.2'  
earlib 'org.elasticsearch.client:elasticsearch-rest-client:6.3.2'  
The scenario: 2 clusters both with the similar 5 indexes.  
cluster-A:clustera\_index1  
cluster-A:clustera\_index2  
cluster-A:clustera\_index3  
cluster-A:clustera\_index4  
cluster-A:clustera\_index5  
cluster-B:clusterb\_index1  
cluster-B:clusterb\_index2  
cluster-B:clusterb\_index3  
cluster-B:clusterb\_index4  
cluster-B:clusterb\_index5  
When the client is running on Cluster-A it is considered 'local' and I build a search string specifying the remote and local indexes like this:  
"clustera\_index1,cluster-B:clusterb\_index1,clustera\_index2,cluster-B:clusterb\_index2,clustera\_index3,cluster-B:clusterb\_index3,clustera\_index4,cluster-B:clusterb\_index4,clustera\_index5,cluster-B:clusterb\_index5"  
(I am listing all indexes out this way because I am allowing the user to dynamically filter which indexes to search)

I also specify the "skip\_unavailable": "true" in the persistent 'seed' definition ... Now when ALL of the indexes are present everything works fine, but there are some situations where one of the indexes may be missing on the remote site. When this happens, NONE of the remote site indexes are searched.

From the documentation I took the "skip\_unavailable" to mean that if the remote cluster(s) was unavailable it would be skipped and allow the search to proceed. Is this the way it is supposed to work? Is there a different setting that will allow for a missing cluster and still process the search on indexes that are present even if one of the specified is not?

---

<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:** [September 5, 2018, 12:16pm UTC](https://discuss.elastic.co/t/cross-cluster-search-skip-unavailable/143509/2 "2018-09-05T12:16:23Z")

</div>

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