2014-07-14 09:37:55 -04:00
|
|
|
{
|
2014-07-16 05:46:55 -04:00
|
|
|
"put_template": {
|
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html",
|
2014-07-14 09:37:55 -04:00
|
|
|
"methods": ["PUT", "POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_search/template/{id}",
|
|
|
|
"paths": [ "/_search/template/{id}" ],
|
|
|
|
"parts": {
|
|
|
|
"id": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Template ID",
|
|
|
|
"required" : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2014-09-03 10:50:27 -04:00
|
|
|
"params" : {
|
|
|
|
"op_type": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["index", "create"],
|
|
|
|
"default" : "index",
|
|
|
|
"description" : "Explicit operation type"
|
|
|
|
},
|
|
|
|
"version": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "Explicit version number for concurrency control"
|
|
|
|
},
|
|
|
|
"version_type": {
|
|
|
|
"type": "enum",
|
|
|
|
"options": ["internal", "external", "external_gte", "force"],
|
|
|
|
"description": "Specific version type"
|
|
|
|
}
|
|
|
|
},
|
2014-07-14 09:37:55 -04:00
|
|
|
"body": {
|
|
|
|
"description" : "The document",
|
|
|
|
"required" : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|