mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
* Made GET mappings consistent, supporting * /{index}/_mappings/{type} * /{index}/_mapping/{type} * /_mapping/{type} * Added "mappings" in the JSON response to align it with other responses * Made GET warmers consistent, support /{index}/_warmers/{type} and /_warmer, /_warner/{name} as well as wildcards and _all notation * Made GET aliases consistent, support /{index}/_aliases/{name} and /_alias, /_aliases/{name} as well as wildcards and _all notation * Made GET settings consistent, added /{index}/_setting/{name}, /_settings/{name} as well as supportings wildcards in settings name * Returning empty JSON instead of a 404, if a specific warmer/ setting/alias/type is missing * Added a ton of spec tests for all of the above * Added a couple of more integration tests for several features Relates #4071
43 lines
1.7 KiB
JSON
43 lines
1.7 KiB
JSON
{
|
|
"indices.get_warmer": {
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-warmers.html",
|
|
"methods": ["GET"],
|
|
"url": {
|
|
"path": "/_warmer",
|
|
"paths": [ "/_warmer", "/{index}/_warmer", "/{index}/_warmer/{name}", "/_warmer/{name}", "/{index}/{type}/_warmer/{name}"],
|
|
"parts": {
|
|
"index": {
|
|
"type" : "list",
|
|
"required" : true,
|
|
"description" : "A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices"
|
|
},
|
|
"name": {
|
|
"type" : "string",
|
|
"description" : "The name of the warmer (supports wildcards); leave empty to get all warmers"
|
|
},
|
|
"type": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types"
|
|
}
|
|
},
|
|
"params": {
|
|
"ignore_unavailable": {
|
|
"type" : "boolean",
|
|
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
|
|
},
|
|
"allow_no_indices": {
|
|
"type" : "boolean",
|
|
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
|
|
},
|
|
"expand_wildcards": {
|
|
"type" : "enum",
|
|
"options" : ["open","closed"],
|
|
"default" : "open",
|
|
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|