Example #1
0
 public Task <TResponse> CreateFollowIndexAsync <TResponse>(string index, PostData body, CreateFollowIndexRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(PUT, Url($"{index:index}/_ccr/follow"), ctx, body, RequestParams(requestParameters));
Example #2
0
 ///<summary>PUT on /{index}/_ccr/follow <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html</para></summary>
 ///<param name = "index">The name of the follower index</param>
 ///<param name = "body">The name of the leader index and other optional ccr related parameters</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse CreateFollowIndex <TResponse>(string index, PostData body, CreateFollowIndexRequestParameters requestParameters = null)
     where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, Url($"{index:index}/_ccr/follow"), body, RequestParams(requestParameters));