Browse Source

Merge pull request #13868 from hafkensite/patch-1

Update example with parameters
Clinton Gormley 10 years ago
parent
commit
8788516e1b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/reference/indices/optimize.asciidoc

+ 2 - 2
docs/reference/indices/optimize.asciidoc

@@ -20,7 +20,7 @@ $ curl -XPOST 'http://localhost:9200/twitter/_optimize'
 [[optimize-parameters]]
 === Request Parameters
 
-The optimize API accepts the following request parameters:
+The optimize API accepts the following request parameters as query arguments:
 
 [horizontal]
 `max_num_segments`:: The number of segments to optimize to. To fully
@@ -48,5 +48,5 @@ call, or even on `_all` the indices.
 --------------------------------------------------
 $ curl -XPOST 'http://localhost:9200/kimchy,elasticsearch/_optimize'
 
-$ curl -XPOST 'http://localhost:9200/_optimize'
+$ curl -XPOST 'http://localhost:9200/_optimize?only_expunge_deletes=true'
 --------------------------------------------------