Skip to content

Commit

Permalink
Capitalize Split index, Clone index, Force merge index
Browse files Browse the repository at this point in the history
Signed-off-by: Alexei Karikov <[email protected]>
  • Loading branch information
Nicksqain committed Sep 5, 2023
1 parent 3264254 commit 2e0a08d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/advanced_index_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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:

```python
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:

Expand All @@ -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:

Expand Down

0 comments on commit 2e0a08d

Please sign in to comment.