NEST by Elastic and contributors

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

.NET API 5,346,304 bytes

 DynamicIndexSettingsDescriptorBase<TDescriptor, TIndexSettings>

public abstract class DynamicIndexSettingsDescriptorBase<TDescriptor, TIndexSettings> : IsADictionaryDescriptorBase<TDescriptor, TIndexSettings, string, object> where TDescriptor : DynamicIndexSettingsDescriptorBase<TDescriptor, TIndexSettings> where TIndexSettings : IDynamicIndexSettings
Base descriptor implementation for dynamic index settings
protected DynamicIndexSettingsDescriptorBase(TIndexSettings instance)

public TDescriptor Analysis(Func<AnalysisDescriptor, IAnalysis> selector)

Configure analysis

public TDescriptor AutoExpandReplicas(AutoExpandReplicas autoExpandReplicas)

Auto-expand the number of replicas based on the number of available nodes. Set to a dash delimited lower and upper bound (e.g. 0-5) or use all for the upper bound (e.g. 0-all). Defaults to false (i.e. disabled).

public TDescriptor BlocksMetadata(bool? blocksMetadata = true)

Set to true to disable index metadata reads and writes.

public TDescriptor BlocksRead(bool? blocksRead = true)

Set to true to disable read operations against the index.

public TDescriptor BlocksReadOnly(bool? blocksReadOnly = true)

Set to true to make the index and index metadata read only, false to allow writes and metadata changes.

public TDescriptor BlocksWrite(bool? blocksWrite = true)

Set to true to disable write operations against the index.

public TDescriptor DefaultPipeline(string defaultPipeline)

The default ingest node pipeline for this index. Index requests will fail if the default pipeline is set and the pipeline does not exist. The default may be overridden using the pipeline parameter. The special pipeline name _none indicates no ingest pipeline should be run.`

public TDescriptor Merge(Func<MergeSettingsDescriptor, IMergeSettings> merge)

All of the settings exposed in the merge module are expert only and may be obsoleted in the future at any time!

public TDescriptor NumberOfReplicas(int? numberOfReplicas)

The number of replicas each primary shard has. Defaults to 1.

public TDescriptor Priority(int? priority)

Unallocated shards are recovered in order of priority when set

public TDescriptor RecoveryInitialShards(Union<int, RecoveryInitialShards> initialShards)

A primary shard is only recovered only if there are enough nodes available to allocate sufficient replicas to form a quorum.

public TDescriptor RefreshInterval(Time time)

How often to perform a refresh operation, which makes recent changes to the index visible to search. Defaults to 1s. Can be set to -1 to disable refresh.

public TDescriptor RequestsCacheEnabled(bool? enable = true)

Enables the shard-level request cache. Not enabled by default.

public TDescriptor Setting(string setting, object value)

Configure similarity

public TDescriptor SlowLog(Func<SlowLogDescriptor, ISlowLog> slowLogSelector)

Configure logging thresholds and levels in elasticsearch for search/fetch and indexing

public TDescriptor TotalShardsPerNode(int? totalShardsPerNode)

public TDescriptor Translog(Func<TranslogSettingsDescriptor, ITranslogSettings> translogSelector)

Configure translog settings. This should only be used by experts who know what they're doing

public TDescriptor UnassignedNodeLeftDelayedTimeout(Time time)

The allocation of replica shards which become unassigned because a node has left can be delayed with this dynamic setting, which defaults to 1m.