// 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: "items", id: 1, refresh: "true", document: { name: "chocolate", production_date: "2018-02-01", location: [-71.34, 41.12], }, }); console.log(response); const response1 = await client.index({ index: "items", id: 2, refresh: "true", document: { name: "chocolate", production_date: "2018-01-01", location: [-71.3, 41.15], }, }); console.log(response1); const response2 = await client.index({ index: "items", id: 3, refresh: "true", document: { name: "chocolate", production_date: "2017-12-01", location: [-71.3, 41.12], }, }); console.log(response2); ----