Skip to content

Commit

Permalink
[DOCS] Fix heading in disk usage tuning guide (elastic#68519) (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored Feb 4, 2021
1 parent bfdde77 commit 211cd8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reference/how-to/disk-usage.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,18 @@ space. They can be compressed more aggressively by using the `best_compression`
<<index-codec,codec>>.

[discrete]
=== Force Merge
=== Force merge

Indices in Elasticsearch are stored in one or more shards. Each shard is a Lucene index and made up of one or more segments - the actual files on disk. Larger segments are more efficient for storing data.

The <<indices-forcemerge,`_forcemerge` API>> can be used to reduce the number of segments per shard. In many cases, the number of segments can be reduced to one per shard by setting `max_num_segments=1`.
The <<indices-forcemerge,force merge API>> can be used to reduce the number of segments per shard. In many cases, the number of segments can be reduced to one per shard by setting `max_num_segments=1`.

include::{es-repo-dir}/indices/forcemerge.asciidoc[tag=force-merge-read-only-warn]

[discrete]
=== Shrink Index
=== Shrink index

The <<indices-shrink-index,Shrink API>> allows you to reduce the number of shards in an index. Together with the Force Merge API above, this can significantly reduce the number of shards and segments of an index.
The <<indices-shrink-index,shrink API>> allows you to reduce the number of shards in an index. Together with the force merge API above, this can significantly reduce the number of shards and segments of an index.

[discrete]
=== Use the smallest numeric type that is sufficient
Expand Down

0 comments on commit 211cd8e

Please sign in to comment.