public Task <GetAsyncSearchResponse <TDocument> > GetAsync <TDocument>(Elastic.Clients.Elasticsearch.Id id, Action <GetAsyncSearchRequestDescriptor <TDocument> > configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new GetAsyncSearchRequestDescriptor <TDocument>(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <GetAsyncSearchRequestDescriptor <TDocument>, GetAsyncSearchResponse <TDocument> >(descriptor));
        }
        public GetAsyncSearchResponse <TDocument> Get <TDocument>(Elastic.Clients.Elasticsearch.Id id, Action <GetAsyncSearchRequestDescriptor <TDocument> > configureRequest = null)
        {
            var descriptor = new GetAsyncSearchRequestDescriptor <TDocument>(id);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <GetAsyncSearchRequestDescriptor <TDocument>, GetAsyncSearchResponse <TDocument> >(descriptor));
        }