Added new docs examples (#1233)
This commit is contained in:
committed by
GitHub
parent
83e5147d9d
commit
148f2fd864
22
docs/doc_examples/b789292f9cf63ce912e058c46d90ce20.asciidoc
Normal file
22
docs/doc_examples/b789292f9cf63ce912e058c46d90ce20.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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: 'sales',
|
||||
size: '0',
|
||||
body: {
|
||||
aggs: {
|
||||
sales_over_time: {
|
||||
date_histogram: {
|
||||
field: 'date',
|
||||
calendar_interval: 'month'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user