Elasticsearch-index-modules
提供:Dev Guides
Elasticsearch-インデックスモジュール
これらは、すべてのインデックスに対して作成され、インデックスの設定と動作を制御するモジュールです。 たとえば、インデックスが使用できるシャードの数や、プライマリシャードがそのインデックスに対して保持できるレプリカの数などです。 インデックス設定には2種類あります-
- 静的-これらは、インデックス作成時または閉じたインデックスでのみ設定できます。
- 動的-これらはライブインデックスで変更できます。
静的インデックス設定
次の表は、静的インデックス設定のリストを示しています-
Setting | Possible value | Description |
---|---|---|
index.number_of_shards | Defaults to 5, Maximum 1024 | The number of primary shards that an index should have. |
index.shard.check_on_startup | Defaults to false. Can be True | Whether or not shards should be checked for corruption before opening. |
index.codec | LZ4 compression. | Type of compression used to store data. |
index.routing_partition_size | 1 | The number of shards a custom routing value can go to. |
index.load_fixed_bitset_filters_eagerly | false | Indicates whether cached filters are pre-loaded for nested queries |
動的インデックス設定
次の表は、動的インデックス設定のリストを示しています-
Setting | Possible value | Description |
---|---|---|
index.number_of_replicas | Defaults to 1 | The number of replicas each primary shard has. |
index.auto_expand_replicas | A dash delimited lower and upper bound (0-5) | Auto-expand the number of replicas based on the number of data nodes in the cluster. |
index.search.idle.after | 30seconds | How long a shard cannot receive a search or get request until it’s considered search idle. |
index.refresh_interval | 1 second | How often to perform a refresh operation, which makes recent changes to the index visible to search. |