// 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.bulk({
  index: "my-index-000001",
  refresh: "true",
  operations: [
    {
      index: {},
    },
    {
      "@timestamp": 1516729294000,
      model_number: "QVKC92Q",
      measures: {
        voltage: 5.2,
      },
    },
    {
      index: {},
    },
    {
      "@timestamp": 1516642894000,
      model_number: "QVKC92Q",
      measures: {
        voltage: 5.8,
      },
    },
    {
      index: {},
    },
    {
      "@timestamp": 1516556494000,
      model_number: "QVKC92Q",
      measures: {
        voltage: 5.1,
      },
    },
    {
      index: {},
    },
    {
      "@timestamp": 1516470094000,
      model_number: "QVKC92Q",
      measures: {
        voltage: 5.6,
      },
    },
    {
      index: {},
    },
    {
      "@timestamp": 1516383694000,
      model_number: "HG537PU",
      measures: {
        voltage: 4.2,
      },
    },
    {
      index: {},
    },
    {
      "@timestamp": 1516297294000,
      model_number: "HG537PU",
      measures: {
        voltage: 4,
      },
    },
  ],
});
console.log(response);
----
