Skip to content

Commit

Permalink
[DOCS] Consistent leading slash in snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig committed Apr 19, 2021
1 parent 96d74a0 commit bb81340
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/reference/how-to/size-your-shards.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ node.

[source,console]
----
GET _cat/shards
GET _cat/shards?v=true
----
// TEST[setup:my_index]

Expand All @@ -201,7 +201,7 @@ configure `index.routing.allocation.total_shards_per_node` using the

[source,console]
--------------------------------------------------
PUT /my-index-000001/_settings
PUT my-index-000001/_settings
{
"index" : {
"routing.allocation.total_shards_per_node" : 5
Expand Down Expand Up @@ -245,7 +245,7 @@ You can find these empty indices using the <<cat-count,cat count API>>.

[source,console]
----
GET /_cat/count/my-index-000001?v=true
GET _cat/count/my-index-000001?v=true
----
// TEST[setup:my_index]

Expand All @@ -255,7 +255,7 @@ unneeded indices.

[source,console]
----
DELETE /my-index-*
DELETE my-index-*
----
// TEST[setup:my_index]

Expand All @@ -270,7 +270,7 @@ are resource-intensive. If possible, run the force merge during off-peak hours.

[source,console]
----
POST /my-index-000001/_forcemerge
POST my-index-000001/_forcemerge
----
// TEST[setup:my_index]

Expand All @@ -283,7 +283,7 @@ If you no longer write to an index, you can use the

[source,console]
----
POST /my-index-000001/_shrink/my-shrunken-index-000001
POST my-index-000001/_shrink/my-shrunken-index-000001
----
// TEST[s/^/PUT my-index-000001\n{"settings":{"index.number_of_shards":2,"blocks.write":true}}\n/]

Expand All @@ -303,7 +303,7 @@ shared index pattern, such as `my-index-2099.10.11`, into a monthly

[source,console]
----
POST /_reindex
POST _reindex
{
"source": {
"index": "my-index-2099.10.*"
Expand Down

0 comments on commit bb81340

Please sign in to comment.