MultiGetDescriptor
public class MultiGetDescriptor : RequestDescriptorBase<MultiGetDescriptor, MultiGetRequestParameters, IMultiGetRequest>, IMultiGetRequest, IRequest<MultiGetRequestParameters>, IRequest
Descriptor for MultiGet
https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html
public MultiGetDescriptor()
/_mget
/{index}/_mget
public MultiGetDescriptor Get<T>(Func<MultiGetOperationDescriptor<T>, IMultiGetOperation> getSelector)
public MultiGetDescriptor GetMany<T>(IEnumerable<long> ids, Func<MultiGetOperationDescriptor<T>, long, IMultiGetOperation> getSelector = null)
public MultiGetDescriptor GetMany<T>(IEnumerable<string> ids, Func<MultiGetOperationDescriptor<T>, string, IMultiGetOperation> getSelector = null)
public MultiGetDescriptor GetMany<T>(IEnumerable<Id> ids, Func<MultiGetOperationDescriptor<T>, Id, IMultiGetOperation> getSelector = null)
The name of the index
a shortcut into calling Index(typeof(TOther))
Specify the node or shard the operation should be performed on (default: random)
Specify whether to perform the operation in realtime or search mode
Refresh the shard containing the document before performing the operation
A document is routed to a particular shard in an index using the following formula
shard_num = hash(_routing) % num_primary_shards
Elasticsearch will use the document id if not provided.
For requests that are constructed from/for a document NEST will automatically infer the routing key if that document has a JoinField or a routing mapping on for its type exists on ConnectionSettings
Whether the _source should be included in the response.
A list of fields to exclude from the returned _source field
A list of fields to exclude from the returned _source field
A list of fields to extract and return from the _source field
A list of fields to extract and return from the _source field
Default stored fields to load for each document.
Default stored fields to load for each document.