NEST by Elastic and contributors

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

.NET API 4,616,192 bytes

 MultiGetDescriptor

Descriptor for MultiGet

https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html

/_mget

/{index}/_mget

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)

The name of the index

public MultiGetDescriptor Index<TOther>()

a shortcut into calling Index(typeof(TOther))

public MultiGetDescriptor Preference(string preference)

Specify the node or shard the operation should be performed on (default: random)

public MultiGetDescriptor Realtime(bool? realtime = true)

Specify whether to perform the operation in realtime or search mode

public MultiGetDescriptor Refresh(bool? refresh = true)

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

public MultiGetDescriptor SourceEnabled(bool? sourceenabled = true)

Whether the _source should be included in the response.

public MultiGetDescriptor SourceExcludes(Fields sourceexcludes)

A list of fields to exclude from the returned _source field

public MultiGetDescriptor SourceExcludes<T>(Expression<Func<T, object>>[] fields)

A list of fields to exclude from the returned _source field

public MultiGetDescriptor SourceIncludes(Fields sourceincludes)

A list of fields to extract and return from the _source field

public MultiGetDescriptor SourceIncludes<T>(Expression<Func<T, object>>[] fields)

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.