update_document
Modify specific fields in an existing document within an Elasticsearch index by providing the index name, document ID, and updated content.
Instructions
Update an existing document in a specific Elasticsearch index
Input Schema
Name | Required | Description | Default |
---|---|---|---|
document | Yes | Partial document body to update (fields to change) | |
id | Yes | Document ID to update | |
index | Yes | Name of the Elasticsearch index |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"document": {
"additionalProperties": {},
"description": "Partial document body to update (fields to change)",
"type": "object"
},
"id": {
"description": "Document ID to update",
"minLength": 1,
"type": "string"
},
"index": {
"description": "Name of the Elasticsearch index",
"minLength": 1,
"type": "string"
}
},
"required": [
"index",
"id",
"document"
],
"type": "object"
}