2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"indices.optimize": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-optimize/",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["POST", "GET"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_optimize",
|
|
|
|
"paths": ["/_optimize", "/{index}/_optimize"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "list",
|
|
|
|
"description" : "A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"flush": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether the index should be flushed after performing the operation (default: true)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"ignore_indices": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["none","missing"],
|
|
|
|
"default" : "none",
|
|
|
|
"description" : "When performed on multiple indices, allows to ignore `missing` ones"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"max_num_segments": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "The number of segments the index should be merged into (default: dynamic)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"only_expunge_deletes": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether the operation should only expunge deleted documents"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"operation_threading": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"description" : "TODO: ?"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"refresh": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether the index should be refreshed after performing the operation (default: true)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"wait_for_merge": {
|
2013-05-27 10:57:31 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether the request should block until the merge process is finished (default: true)"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|