-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow excluding a cluster from a CCS search using minus sign in multi…
…-target syntax (#97865) Elasticsearch multi-target syntax for indices allows excluding an index with the "-" sign. Public docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/api-conventions.html#api-multi-index This commit expands that functionality to index expressions that include a cluster alias. For example: POST logs*,*:logs*,-remote4:*,-remote1*:*/_async_search Would result in search all remote clusters except for remote4 and remote1, remote11, remote12, remote13, etc.. A singleton wildcard is required in the index position of the `cluster:index`, to specify that we are excluding the entire cluster. This is useful when a cluster is down or slow during CCS searches. Excluding a subset of indexes on a remote cluster is not supported in this commit. For example, this will throw an error: POST logs*,*:logs*,-remote4:logs*/_async_search
- Loading branch information
Showing
3 changed files
with
199 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters