2013-05-24 06:02:42 -04:00
|
|
|
{
|
2013-06-07 12:54:21 -04:00
|
|
|
"indices.put_mapping": {
|
2013-05-27 10:48:41 -04:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["PUT", "POST"],
|
|
|
|
"url": {
|
2013-06-20 11:07:06 -04:00
|
|
|
"path": "/{index}/{type}/_mapping",
|
|
|
|
"paths": ["/{index}/{type}/_mapping"],
|
2013-05-24 06:02:42 -04:00
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-27 10:48:41 -04:00
|
|
|
"type" : "list",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "A comma-separated list of index names; use `_all` to perform the operation on all indices"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-27 10:48:41 -04:00
|
|
|
"type" : "string",
|
2013-06-20 11:07:06 -04:00
|
|
|
"required" : true,
|
2013-05-27 10:48:41 -04:00
|
|
|
"description" : "The name of the document type"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"ignore_conflicts": {
|
2013-05-27 10:48:41 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether to ignore conflicts while updating the mapping (default: false)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"timeout": {
|
2013-05-27 10:48:41 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
2013-07-22 18:06:25 -04:00
|
|
|
},
|
|
|
|
"master_timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Specify timeout for connection to master"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-06-08 09:31:15 -04:00
|
|
|
"body": {
|
2013-06-08 09:34:13 -04:00
|
|
|
"description" : "The mapping definition",
|
|
|
|
"required" : true
|
2013-06-08 09:31:15 -04:00
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|