/// <summary> /// <c>PUT</c> request to the <c>ccr.follow</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html</a> /// </summary> public Task <CreateFollowIndexResponse> CreateFollowIndexAsync(ICreateFollowIndexRequest request, CancellationToken ct = default) => DoRequestAsync <ICreateFollowIndexRequest, CreateFollowIndexResponse>(request, request.RequestParameters, ct);
/// <summary> /// <c>PUT</c> request to the <c>ccr.follow</c> API, read more about this API online: /// <para></para> /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html</a> /// </summary> public CreateFollowIndexResponse CreateFollowIndex(ICreateFollowIndexRequest request) => DoRequest <ICreateFollowIndexRequest, CreateFollowIndexResponse>(request, request.RequestParameters);
/// <inheritdoc cref="CreateFollowIndex(IndexName, System.Func{Nest.CreateFollowIndexDescriptor,Nest.ICreateFollowIndexRequest})" /> public Task <ICreateFollowIndexResponse> CreateFollowIndexAsync(ICreateFollowIndexRequest request, CancellationToken cancellationToken = default) => Dispatcher.DispatchAsync <ICreateFollowIndexRequest, CreateFollowIndexRequestParameters, CreateFollowIndexResponse, ICreateFollowIndexResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.CcrFollowDispatchAsync <CreateFollowIndexResponse>(p, d, c) );
/// <inheritdoc cref="CreateFollowIndex(IndexName, System.Func{Nest.CreateFollowIndexDescriptor,Nest.ICreateFollowIndexRequest})" /> public ICreateFollowIndexResponse CreateFollowIndex(ICreateFollowIndexRequest request) => Dispatcher.Dispatch <ICreateFollowIndexRequest, CreateFollowIndexRequestParameters, CreateFollowIndexResponse>( request, (p, d) => LowLevelDispatch.CcrFollowDispatch <CreateFollowIndexResponse>(p, d) );
public static Task <CreateFollowIndexResponse> CreateFollowIndexAsync(this IElasticClient client, ICreateFollowIndexRequest request, CancellationToken ct = default ) => client.CrossClusterReplication.CreateFollowIndexAsync(request, ct);
public static CreateFollowIndexResponse CreateFollowIndex(this IElasticClient client, ICreateFollowIndexRequest request) => client.CrossClusterReplication.CreateFollowIndex(request);