Added/updated snippets for docs (#2318)
This commit is contained in:
19
docs/doc_examples/aa699ff3234f54d091575a38e859a627.asciidoc
Normal file
19
docs/doc_examples/aa699ff3234f54d091575a38e859a627.asciidoc
Normal file
@ -0,0 +1,19 @@
|
||||
// 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.search({
|
||||
index: "my-index-000001",
|
||||
typed_keys: "true",
|
||||
aggs: {
|
||||
"my-agg-name": {
|
||||
histogram: {
|
||||
field: "my-field",
|
||||
interval: 1000,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user