NEST by Elastic and contributors

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

.NET API 4,316,160 bytes

 ShrinkIndexDescriptor

Descriptor for Shrink

https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html

/{index}/_shrink/{target}

Used for serialization purposes, making sure we have a parameterless constructor

The name of the source index to shrink

public ShrinkIndexDescriptor Index<TOther>()

a shortcut into calling Index(typeof(TOther))

Specify timeout for connection to master

Explicit operation timeout

public ShrinkIndexDescriptor WaitForActiveShards(string waitforactiveshards)

Set the number of active shards to wait for on the shrunken index before the operation returns.