Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/170c8a3fb81a4e93cd3034a3b5a43ac9.asciidoc
Normal file
20
docs/doc_examples/170c8a3fb81a4e93cd3034a3b5a43ac9.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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: "test",
|
||||
id: 1,
|
||||
document: {
|
||||
location: {
|
||||
coordinates: [
|
||||
[46.25, 20.14],
|
||||
[47.49, 19.04],
|
||||
],
|
||||
type: "multipoint",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user