Skip to content

Latest commit

 

History

History
25 lines (24 loc) · 441 Bytes

19c00c6b29bc7dbc5e92b3668da2da93.asciidoc

File metadata and controls

25 lines (24 loc) · 441 Bytes
const response = await client.simulate.ingest({
  docs: [
    {
      _index: "my-index",
      _id: "123",
      _source: {
        foo: "bar",
      },
    },
    {
      _index: "my-index",
      _id: "456",
      _source: {
        foo: "rab",
      },
    },
  ],
});
console.log(response);