NEST by Elasticsearch Inc. and contributors

<PackageReference Include="NEST" Version="1.6.0" />

.NET API 2,330,112 bytes

 SourceManyExtensions

public static class SourceManyExtensions
Provides convenience extension methods to get many _source's given a list of ids.
public static IEnumerable<T> SourceMany<T>(this IElasticClient client, IEnumerable<string> ids, string index = null, string type = null)

SourceMany allows you to get a list of T documents out of elasticsearch, internally it calls into MultiGet()

Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing). The response includes a docs array with all the fetched documents, each element similar in structure to a document provided by the get API.

>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html

public static IEnumerable<T> SourceMany<T>(this IElasticClient client, IEnumerable<long> ids, string index = null, string type = null)

SourceMany allows you to get a list of T documents out of elasticsearch, internally it calls into MultiGet()

Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing). The response includes a docs array with all the fetched documents, each element similar in structure to a document provided by the get API.

>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html

public static Task<IEnumerable<T>> SourceManyAsync<T>(this IElasticClient client, IEnumerable<string> ids, string index = null, string type = null)

SourceMany allows you to get a list of T documents out of elasticsearch, internally it calls into MultiGet()

Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing). The response includes a docs array with all the fetched documents, each element similar in structure to a document provided by the get API.

>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html

public static Task<IEnumerable<T>> SourceManyAsync<T>(this IElasticClient client, IEnumerable<long> ids, string index = null, string type = null)

SourceMany allows you to get a list of T documents out of elasticsearch, internally it calls into MultiGet()

Multi GET API allows to get multiple documents based on an index, type (optional) and id (and possibly routing). The response includes a docs array with all the fetched documents, each element similar in structure to a document provided by the get API.

>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html