Ejemplo n.º 1
0
 /// <summary>
 /// <c>GET</c> request to the <c>async_search.get</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html</a>
 /// </summary>
 public Task <AsyncSearchGetResponse <TDocument> > GetAsync <TDocument>(IAsyncSearchGetRequest request, CancellationToken ct = default)
     where TDocument : class => DoRequestAsync <IAsyncSearchGetRequest, AsyncSearchGetResponse <TDocument> >(request, request.RequestParameters, ct);
Ejemplo n.º 2
0
 /// <summary>
 /// <c>GET</c> request to the <c>async_search.get</c> API, read more about this API online:
 /// <para></para>
 /// <a href = "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html</a>
 /// </summary>
 public AsyncSearchGetResponse <TDocument> Get <TDocument>(IAsyncSearchGetRequest request)
     where TDocument : class => DoRequest <IAsyncSearchGetRequest, AsyncSearchGetResponse <TDocument> >(request, request.RequestParameters);