Added/updated snippets for docs (#2318)
This commit is contained in:
35
docs/doc_examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc
Normal file
35
docs/doc_examples/6fd82baa17a48e09e3d2eed514af7f46.asciidoc
Normal file
@ -0,0 +1,35 @@
|
||||
// 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: {
|
||||
type: "MultiLineString",
|
||||
coordinates: [
|
||||
[
|
||||
[102, 2],
|
||||
[103, 2],
|
||||
[103, 3],
|
||||
[102, 3],
|
||||
],
|
||||
[
|
||||
[100, 0],
|
||||
[101, 0],
|
||||
[101, 1],
|
||||
[100, 1],
|
||||
],
|
||||
[
|
||||
[100.2, 0.2],
|
||||
[100.8, 0.2],
|
||||
[100.8, 0.8],
|
||||
[100.2, 0.8],
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user