English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Elasticsearch Index Module

These are modules created for each index to control the settings and behavior of the index. For example, how many shards the index can use or the number of replicas the primary shard of the index can have, etc. There are two types of index settings-

  • Static−These can only be set when creating the index or when the index is closed.

  • Dynamic −These can be changed on real-time indexes.

Static index settings

The table below shows the list of static index settings-

Set
Possible valuesDescription
index.number_of_shards

The default value is5, the maximum value is1024

The number of primary shards the index should have.

index.shard.check_on_startup

Default is false. Can be set to True

Whether it should check if the fragment is damaged before opening.

index.codec

LZ4Compression.

The compression type used to store data.

index.routing_partition_size1

The number of fragments that the custom routing value can be redirected to.

index.load_fixed_bitset_filters_eagerlyfalseIndicates whether to preload cache filters for nested queries

Dynamic index settings

The table below shows the list of dynamic index settings-

Set
Possible valuesDescription
index.number_of_replicas

Default is1

The number of replicas each primary shard has.

index.auto_expand_replicas

By the lower and upper limits (0-5Dash separated by parentheses

Automatically expand the number of replicas based on the number of data nodes in the cluster.

index.search.idle.after30seconds

The time that the shard cannot receive search or fetch requests before it is considered as search idle.

index.refresh_interval1 second

Frequency of executing refresh operations, refresh operations make recent changes to the index visible for search.