Files
elasticsearch-js/docs/doc_examples/e4b38973c74037335378d8480f1ce894.asciidoc
2025-03-07 15:18:44 -06:00

43 lines
775 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.simulate.ingest({
docs: [
{
_index: "my-index",
_id: "123",
_source: {
foo: "foo",
},
},
{
_index: "my-index",
_id: "456",
_source: {
bar: "rab",
},
},
],
component_template_substitutions: {
"my-mappings_template": {
template: {
mappings: {
dynamic: "strict",
properties: {
foo: {
type: "keyword",
},
bar: {
type: "keyword",
},
},
},
},
},
},
});
console.log(response);
----