2013-05-24 06:02:42 -04:00
{
2013-06-07 12:54:21 -04:00
"indices.put_warmer" : {
2015-03-24 12:03:35 -04:00
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-warmers.html" ,
Make PUT and DELETE consistent for _mapping, _alias and _warmer
See issue #4071
PUT options for _mapping:
Single type can now be added with
`[PUT|POST] {index|_all|*|regex|blank}/[_mapping|_mappings]/type`
and
`[PUT|POST] {index|_all|*|regex|blank}/type/[_mapping|_mappings]`
PUT options for _warmer:
PUT with a single warmer can now be done with
`[PUT|POST] {index|_all|*|prefix*|blank}/{type|_all|*|prefix*|blank}/[_warmer|_warmers]/warmer_name`
PUT options for _alias:
Single alias can now be PUT with
`[PUT|POST] {index|_all|*|prefix*|blank}/[_alias|_aliases]/alias`
DELETE options _mapping:
Several mappings can be deleted at once by defining several indices and types with
`[DELETE] /{index}/{type}`
`[DELETE] /{index}/{type}/_mapping`
`[DELETE] /{index}/_mapping/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_mapings` can be used.
DELETE options for _warmer:
Several warmers can be deleted at once by defining several indices and names with
`[DELETE] /{index}/_warmer/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_warmers` can be used.
DELETE options for _alias:
Several aliases can be deleted at once by defining several indices and names with
`[DELETE] /{index}/_alias/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_aliases` can be used.
2014-01-08 04:34:48 -05:00
"methods" : [ "PUT" , "POST" ] ,
2013-05-24 06:02:42 -04:00
"url" : {
"path" : "/{index}/_warmer/{name}" ,
Make PUT and DELETE consistent for _mapping, _alias and _warmer
See issue #4071
PUT options for _mapping:
Single type can now be added with
`[PUT|POST] {index|_all|*|regex|blank}/[_mapping|_mappings]/type`
and
`[PUT|POST] {index|_all|*|regex|blank}/type/[_mapping|_mappings]`
PUT options for _warmer:
PUT with a single warmer can now be done with
`[PUT|POST] {index|_all|*|prefix*|blank}/{type|_all|*|prefix*|blank}/[_warmer|_warmers]/warmer_name`
PUT options for _alias:
Single alias can now be PUT with
`[PUT|POST] {index|_all|*|prefix*|blank}/[_alias|_aliases]/alias`
DELETE options _mapping:
Several mappings can be deleted at once by defining several indices and types with
`[DELETE] /{index}/{type}`
`[DELETE] /{index}/{type}/_mapping`
`[DELETE] /{index}/_mapping/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_mapings` can be used.
DELETE options for _warmer:
Several warmers can be deleted at once by defining several indices and names with
`[DELETE] /{index}/_warmer/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_warmers` can be used.
DELETE options for _alias:
Several aliases can be deleted at once by defining several indices and names with
`[DELETE] /{index}/_alias/{type}`
where
`index= * | _all | glob pattern | name1, name2, …`
`type= * | _all | glob pattern | name1, name2, …`
Alternatively, the keyword `_aliases` can be used.
2014-01-08 04:34:48 -05:00
"paths" : [ "/_warmer/{name}" , "/{index}/_warmer/{name}" , "/{index}/{type}/_warmer/{name}" , "/_warmers/{name}" , "/{index}/_warmers/{name}" , "/{index}/{type}/_warmers/{name}" ] ,
2013-05-24 06:02:42 -04:00
"parts" : {
"index" : {
2013-05-27 16:29:08 -04:00
"type" : "list" ,
2014-01-14 18:22:44 -05:00
"description" : "A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices"
2013-05-24 06:02:42 -04:00
} ,
"name" : {
2013-05-27 16:29:08 -04:00
"type" : "string" ,
2013-06-09 15:17:29 -04:00
"required" : true ,
2013-05-28 04:44:51 -04:00
"description" : "The name of the warmer"
2013-05-24 06:02:42 -04:00
} ,
"type" : {
2013-05-27 16:29:08 -04:00
"type" : "list" ,
"description" : "A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types"
2013-05-24 06:02:42 -04:00
}
} ,
"params" : {
2013-07-22 18:06:25 -04:00
"master_timeout" : {
"type" : "time" ,
"description" : "Specify timeout for connection to master"
2014-01-05 17:32:44 -05:00
} ,
"ignore_unavailable" : {
"type" : "boolean" ,
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed) in the search request to warm"
} ,
"allow_no_indices" : {
"type" : "boolean" ,
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices in the search request to warm. (This includes `_all` string or when no indices have been specified)"
} ,
"expand_wildcards" : {
"type" : "enum" ,
2015-01-23 10:03:17 -05:00
"options" : [ "open" , "closed" , "none" , "all" ] ,
2014-01-05 17:32:44 -05:00
"default" : "open" ,
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both, in the search request to warm."
2013-07-22 18:06:25 -04:00
}
2013-05-24 06:02:42 -04:00
}
} ,
2013-05-27 16:29:08 -04:00
"body" : {
2013-06-08 09:34:13 -04:00
"description" : "The search request definition for the warmer (query, filters, facets, sorting, etc)" ,
"required" : true
2013-05-27 16:29:08 -04:00
}
2013-05-24 06:02:42 -04:00
}
}