/// <inheritdoc />
		public Task<IShardsOperationResponse> RefreshAsync(IRefreshRequest refreshRequest)
		{
			return this.DispatchAsync<IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>(
				refreshRequest,
				(p, d) => this.RawDispatch.IndicesRefreshDispatchAsync<ShardsOperationResponse>(p)
			);
		}
Beispiel #2
0
 /// <inheritdoc />
 public Task <IShardsOperationResponse> RefreshAsync(IRefreshRequest refreshRequest)
 {
     return(this.DispatchAsync <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>(
                refreshRequest,
                (p, d) => this.RawDispatch.IndicesRefreshDispatchAsync <ShardsOperationResponse>(p)
                ));
 }
		/// <inheritdoc />
		public IShardsOperationResponse Refresh(IRefreshRequest refreshRequest)
		{
			return this.Dispatch<IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>(
				refreshRequest,
				(p, d) => this.RawDispatch.IndicesRefreshDispatch<ShardsOperationResponse>(p)
			);
		}
Beispiel #4
0
 /// <inheritdoc />
 public IShardsOperationResponse Refresh(IRefreshRequest refreshRequest)
 {
     return(this.Dispatch <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>(
                refreshRequest,
                (p, d) => this.RawDispatch.IndicesRefreshDispatch <ShardsOperationResponse>(p)
                ));
 }
Beispiel #5
0
        public IRefreshResponse Refresh(IRefreshRequest request, [CallerMemberName] string callerName = "")
        {
            var timer  = Stopwatch.StartNew();
            var result = _client.Refresh(request);

            SendLog(result.ApiCall, null, timer.ElapsedMilliseconds, $"Refresh {callerName}");
            return(result);
        }
        public RefreshResponse Refresh(IRefreshRequest request, [CallerMemberName] string callerName = "")
        {
            var timer  = Stopwatch.StartNew();
            var result = _client.Indices.Refresh(request);

            ValidateResponse(result);
            SendLog(result.ApiCall, null, timer.ElapsedMilliseconds, $"Elasticsearch.Refresh.{callerName}");
            return(result);
        }
		/// <inheritdoc/>
		public IRefreshResponse Refresh(IRefreshRequest request) => 
			this.Dispatcher.Dispatch<IRefreshRequest, RefreshRequestParameters, RefreshResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesRefreshDispatch<RefreshResponse>(p)
			);
		/// <inheritdoc/>
		public Task<IRefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
			this.Dispatcher.DispatchAsync<IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>(
				request,
				cancellationToken,
				(p, d, c) => this.LowLevelDispatch.IndicesRefreshDispatchAsync<RefreshResponse>(p, c)
			);
Beispiel #9
0
 /// <inheritdoc />
 public Task <RefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IRefreshRequest, RefreshResponse>(request, request.RequestParameters, ct);
Beispiel #10
0
 /// <inheritdoc />
 public RefreshResponse Refresh(IRefreshRequest request) =>
 DoRequest <IRefreshRequest, RefreshResponse>(request, request.RequestParameters);
 public static RefreshResponse Refresh(this IElasticClient client, IRefreshRequest request)
 => client.Indices.Refresh(request);
Beispiel #12
0
 /// <inheritdoc/>
 public IShardsOperationResponse Refresh(IRefreshRequest request) =>
 this.Dispatcher.Dispatch <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesRefreshDispatch <ShardsOperationResponse>(p)
     );
Beispiel #13
0
 /// <inheritdoc />
 public Task <IRefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.IndicesRefreshDispatchAsync <RefreshResponse>(p, c)
     );
Beispiel #14
0
 /// <inheritdoc />
 public IRefreshResponse Refresh(IRefreshRequest request) =>
 Dispatcher.Dispatch <IRefreshRequest, RefreshRequestParameters, RefreshResponse>(
     request,
     (p, d) => LowLevelDispatch.IndicesRefreshDispatch <RefreshResponse>(p)
     );
 public static Task <RefreshResponse> RefreshAsync(this IElasticClient client, IRefreshRequest request, CancellationToken ct = default)
 => client.Indices.RefreshAsync(request, ct);
		/// <inheritdoc/>
		public Task<IRefreshResponse> RefreshAsync(IRefreshRequest request) => 
			this.Dispatcher.DispatchAsync<IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>(
				request,
				(p, d) => this.LowLevelDispatch.IndicesRefreshDispatchAsync<RefreshResponse>(p)
			);
Beispiel #17
0
 /// <inheritdoc/>
 public Task <IShardsOperationResponse> RefreshAsync(IRefreshRequest request) =>
 this.Dispatcher.DispatchAsync <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>(
     request,
     (p, d) => this.LowLevelDispatch.IndicesRefreshDispatchAsync <ShardsOperationResponse>(p)
     );
Beispiel #18
0
 public static void Update(ElasticsearchPathInfo <RefreshRequestParameters> pathInfo, IRefreshRequest request)
 {
     pathInfo.HttpMethod = PathInfoHttpMethod.POST;
 }