Esempio n. 1
0
 ///<summary>POST on /{index}/_eql/search <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.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">Eql request body. Use the `query` to limit the query scope.</param>
 ///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
 public TResponse Search <TResponse>(string index, PostData body, EqlSearchRequestParameters requestParameters = null)
     where TResponse : class, ITransportResponse, new() => DoRequest <TResponse>(POST, Url($"{index:index}/_eql/search"), body, RequestParams(requestParameters));
Esempio n. 2
0
 public Task <TResponse> SearchAsync <TResponse>(string index, PostData body, EqlSearchRequestParameters requestParameters = null, CancellationToken ctx = default)
     where TResponse : class, ITransportResponse, new() => DoRequestAsync <TResponse>(POST, Url($"{index:index}/_eql/search"), ctx, body, RequestParams(requestParameters));