(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
14 lines
325 B
Plaintext
14 lines
325 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.index({
|
|
index: "example",
|
|
document: {
|
|
location: "LINESTRING (-377.03653 389.897676, -377.009051 389.889939)",
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|