@@ -362,42 +362,62 @@ defaultIndexSettings = IndexSettings (ShardCount 3) (ReplicaCount 2)
362 <https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html>
362 <https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html>
364data IndexSettingUpdate = NumberOfReplicas Int
364data IndexSettingUpdate = NumberOfReplicas Int
365+ -- ^ The number of replicas each shard has.
365 | AutoExpandReplicas ReplicaBounds
366 | AutoExpandReplicas ReplicaBounds
366 | BlocksReadOnly Bool
367 | BlocksReadOnly Bool
368+ -- ^ Set to True to have the index read only. False to allow writes and metadata changes.
367 | BlocksRead Bool
369 | BlocksRead Bool
370+ -- ^ Set to True to disable read operations against the index.
368 | BlocksWrite Bool
371 | BlocksWrite Bool
372+ -- ^ Set to True to disable write operations against the index.
369 | BlocksMetaData Bool
373 | BlocksMetaData Bool
374+ -- ^ Set to True to disable metadata operations against the index.
370 | RefreshInterval NominalDiffTime
375 | RefreshInterval NominalDiffTime
376+ -- ^ The async refresh interval of a shard
371 | IndexConcurrency Int
377 | IndexConcurrency Int
372 | FailOnMergeFailure Bool
378 | FailOnMergeFailure Bool
373 | TranslogFlushThresholdOps Int
379 | TranslogFlushThresholdOps Int
380+ -- ^ When to flush on operations.
374 | TranslogFlushThresholdSize Bytes
381 | TranslogFlushThresholdSize Bytes
382+ -- ^ When to flush based on translog (bytes) size.
375 | TranslogFlushThresholdPeriod NominalDiffTime
383 | TranslogFlushThresholdPeriod NominalDiffTime
384+ -- ^ When to flush based on a period of not flushing.
376 | TranslogDisableFlush Bool
385 | TranslogDisableFlush Bool
386+ -- ^ Disables flushing. Note, should be set for a short interval and then enabled.
377 | CacheFilterMaxSize (Maybe Bytes)
387 | CacheFilterMaxSize (Maybe Bytes)
388+ -- ^ The maximum size of filter cache (per segment in shard).
378 | CacheFilterExpire (Maybe NominalDiffTime)
389 | CacheFilterExpire (Maybe NominalDiffTime)
390+ -- ^ The expire after access time for filter cache.
379 | GatewaySnapshotInterval NominalDiffTime
391 | GatewaySnapshotInterval NominalDiffTime
392+ -- ^ The gateway snapshot interval (only applies to shared gateways).
380 | RoutingAllocationInclude (NonEmpty NodeAttrFilter)
393 | RoutingAllocationInclude (NonEmpty NodeAttrFilter)
394+ -- ^ A node matching any rule will be allowed to host shards from the index.
381 | RoutingAllocationExclude (NonEmpty NodeAttrFilter)
395 | RoutingAllocationExclude (NonEmpty NodeAttrFilter)
396+ -- ^ A node matching any rule will NOT be allowed to host shards from the index.
382 | RoutingAllocationRequire (NonEmpty NodeAttrFilter)
397 | RoutingAllocationRequire (NonEmpty NodeAttrFilter)
383− | RoutingAllocationDisable Bool
398+ -- ^ Only nodes matching all rules will be allowed to host shards from the index.
384− | RoutingAllocationDisableNew Bool
385− | RoutingAllocationDisableReplica Bool
386 | RoutingAllocationEnable AllocationPolicy
399 | RoutingAllocationEnable AllocationPolicy
400+ -- ^ Enables shard allocation for a specific index.
387 | RoutingAllocationShardsPerNode ShardCount
401 | RoutingAllocationShardsPerNode ShardCount
402+ -- ^ Controls the total number of shards (replicas and primaries) allowed to be allocated on a single node.
388 | RecoveryInitialShards InitialShardCount
403 | RecoveryInitialShards InitialShardCount
404+ -- ^ When using local gateway a particular shard is recovered only if there can be allocated quorum shards in the cluster.
389 | GCDeletes NominalDiffTime
405 | GCDeletes NominalDiffTime
390 | TTLDisablePurge Bool
406 | TTLDisablePurge Bool
407+ -- ^ Disables temporarily the purge of expired docs.
391 | TranslogFSType FSType
408 | TranslogFSType FSType
392 | IndexCompoundFormat CompoundFormat
409 | IndexCompoundFormat CompoundFormat
393 | IndexCompoundOnFlush Bool
410 | IndexCompoundOnFlush Bool
394 | WarmerEnabled Bool
411 | WarmerEnabled Bool
395− --TODO: figure out allocation options
397data AllocationPolicy = AllocAll
413data AllocationPolicy = AllocAll
414+ -- ^ Allows shard allocation for all shards.
398 | AllocPrimaries
415 | AllocPrimaries
416+ -- ^ Allows shard allocation only for primary shards.
399 | AllocNewPrimaries
417 | AllocNewPrimaries
418+ -- ^ Allows shard allocation only for primary shards for new indices.
400 | AllocNone
419 | AllocNone
420+ -- ^ No shard allocation is allowed
402data ReplicaBounds = ReplicasBounded Int Int
422data ReplicaBounds = ReplicasBounded Int Int
403 | ReplicasLowerBounded Int
423 | ReplicasLowerBounded Int