[[reference-ccr-follow]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.ccr.follow Creates a new follower index configured to follow the referenced leader index. {ref}/ccr-put-follow.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (CcrFollowRequest, options?): Promise ---- [discrete] ===== `CcrFollowRequest` [source,ts] ---- interface CcrFollowRequest extends <> { index: <> wait_for_active_shards?: <> leader_index?: <> max_outstanding_read_requests?: <> max_outstanding_write_requests?: <> max_read_request_operation_count?: <> max_read_request_size?: string max_retry_delay?: <> max_write_buffer_count?: <> max_write_buffer_size?: string max_write_request_operation_count?: <> max_write_request_size?: string read_poll_timeout?: <> remote_cluster?: string } ---- [discrete] ===== `CcrFollowResponse` [source,ts] ---- interface CcrFollowResponse { follow_index_created: boolean follow_index_shards_acked: boolean index_following_started: boolean } ----