2014-07-14 09:37:55 -04:00
|
|
|
{
|
2014-07-16 05:46:55 -04:00
|
|
|
"put_template": {
|
2015-03-24 12:03:35 -04:00
|
|
|
"documentation": "http://www.elastic.co/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
|
|
|
},
|
2014-11-22 09:42:47 -05: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-09-03 10:50:27 -04:00
|
|
|
}
|
|
|
|
},
|
2014-07-14 09:37:55 -04:00
|
|
|
"body": {
|
|
|
|
"description" : "The document",
|
|
|
|
"required" : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|