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

13 lines
282 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: "test",
id: 1,
script: "ctx._source.remove('new_field')",
});
console.log(response);
----