// 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.index({
  index: "my_test_scores_2",
  pipeline: "my_test_scores_pipeline",
  document: {
    student: "kimchy",
    grad_year: "2099",
    math_score: 1200,
    verbal_score: 800,
  },
});
console.log(response);
----
