Files
elasticsearch-js/docs/doc_examples/febb71d774e0a1fc67454213d7448c53.asciidoc
2024-07-29 17:10:05 -05:00

13 lines
293 B
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.update({
index: "my-index-000001",
id: 1,
script: "ctx._source.remove('new_field')",
});
console.log(response);
----