Ejemplo n.º 1
0
 protected sealed override void RequestDefaults(AsyncSearchSubmitRequestParameters parameters) => TypedKeys();
Ejemplo n.º 2
0
 public Task <TResponse> SubmitAsync <TResponse>(PostData body, AsyncSearchSubmitRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(POST, "_async_search", ctx, body, RequestParams(requestParameters));
Ejemplo n.º 3
0
 ///<summary>POST on /{index}/_async_search <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html</para></summary>
 ///<param name = "index">A comma-separated list of index names to search; use the special string `_all` or Indices.All to perform the operation on all indices</param>
 ///<param name = "body">The search definition using the Query DSL</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse Submit <TResponse>(string index, PostData body, AsyncSearchSubmitRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(POST, Url($"{index:index}/_async_search"), body, RequestParams(requestParameters));
Ejemplo n.º 4
0
 ///<summary>POST on /_async_search <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html</para></summary>
 ///<param name = "body">The search definition using the Query DSL</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse Submit <TResponse>(PostData body, AsyncSearchSubmitRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(POST, "_async_search", body, RequestParams(requestParameters));
Ejemplo n.º 5
0
 public Task <TResponse> SubmitAsync <TResponse>(string index, PostData body, AsyncSearchSubmitRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(POST, Url($"{index:index}/_async_search"), ctx, body, RequestParams(requestParameters));