From 2e0a08d405f067a9189a4cc12b157474ea370461 Mon Sep 17 00:00:00 2001 From: Alexei Karikov Date: Tue, 5 Sep 2023 23:29:07 +0600 Subject: [PATCH] Capitalize Split index, Clone index, Force merge index Signed-off-by: Alexei Karikov --- guides/advanced_index_actions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guides/advanced_index_actions.md b/guides/advanced_index_actions.md index 37c5a4bc..b049470d 100644 --- a/guides/advanced_index_actions.md +++ b/guides/advanced_index_actions.md @@ -70,7 +70,7 @@ client.indices.close(index='movies') client.indices.open(index='movies') ``` -### Force merge index +### Force Merge Index You can force merge an index or indices to reduce the number of segments in the index. This can be useful if you have a large number of small segments in the index. Merging segments reduces the memory footprint of the index. Do note that this action is resource intensive and it is only recommended for read-only indices. The following example force merges the `movies` index: @@ -78,7 +78,7 @@ You can force merge an index or indices to reduce the number of segments in the client.indices.forcemerge(index='movies') ``` -### Clone index +### Clone Index You can clone an index to create a new index with the same mappings, data, and MOST of the settings. The source index must be in read-only state for cloning. The following example blocks write operations from `movies` index, clones the said index to create a new index named `movies_clone`, then re-enables write: @@ -88,7 +88,7 @@ client.indices.clone(index='movies', target='movies_clone') client.indices.put_settings(index='movies', body={'index': {'blocks': {'write': False}}}) ``` -### Split index +### Split Index You can split an index into another index with more primary shards. The source index must be in read-only state for splitting. The following example create the read-only `books` index with 30 routing shards and 5 shards (which is divisible by 30), splits index into `bigger_books` with 10 shards (which is also divisible by 30), then re-enables write: