2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"update": {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-update.html",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["POST"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}/_update",
|
|
|
|
"paths": ["/{index}/{type}/{id}/_update"],
|
|
|
|
"parts": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"id": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "string",
|
|
|
|
"required": true,
|
|
|
|
"description": "Document ID"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"index": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "string",
|
|
|
|
"required": true,
|
|
|
|
"description": "The name of the index"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "string",
|
|
|
|
"required": true,
|
|
|
|
"description": "The type of the document"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"consistency": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "enum",
|
|
|
|
"options": ["one", "quorum", "all"],
|
|
|
|
"description": "Explicit write consistency setting for the operation"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"fields": {
|
2013-05-27 17:57:02 -04:00
|
|
|
"type": "list",
|
2014-04-23 05:13:25 -04:00
|
|
|
"description": "A comma-separated list of fields to return in the response"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"lang": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "string",
|
2014-06-20 06:11:59 -04:00
|
|
|
"description": "The script language (default: groovy)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"refresh": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "boolean",
|
|
|
|
"description": "Refresh the index after performing the operation"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"replication": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "enum",
|
|
|
|
"options": ["sync", "async"],
|
|
|
|
"default": "sync",
|
|
|
|
"description": "Specific replication type"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"retry_on_conflict": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "number",
|
|
|
|
"description": "Specify how many times should the operation be retried when a conflict occurs (default: 0)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"routing": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "string",
|
|
|
|
"description": "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"script": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"description": "The URL-encoded script definition (instead of using request body)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-08-04 04:13:10 -04:00
|
|
|
"script_id": {
|
|
|
|
"description": "The id of a stored script"
|
|
|
|
},
|
|
|
|
"scripted_upsert": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "True if the script referenced in script or script_id should be called to perform inserts - defaults to false"
|
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"timeout": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "time",
|
|
|
|
"description": "Explicit operation timeout"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"timestamp": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "time",
|
|
|
|
"description": "Explicit timestamp for the document"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"ttl": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "duration",
|
|
|
|
"description": "Expiration time for the document"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-04-23 05:13:25 -04:00
|
|
|
"version": {
|
|
|
|
"type": "number",
|
|
|
|
"description": "Explicit version number for concurrency control"
|
2013-06-20 05:34:09 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"version_type": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"type": "enum",
|
|
|
|
"options": ["internal", "force"],
|
|
|
|
"description": "Specific version type"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": {
|
2014-04-23 05:13:25 -04:00
|
|
|
"description": "The request definition using either `script` or partial `doc`"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|