|
@@ -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'
|
|
|
--------------------------------------------------
|