Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/97da68c09c9f1a97a21780fd404e213a.asciidoc
Normal file
20
docs/doc_examples/97da68c09c9f1a97a21780fd404e213a.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.search({
|
||||
index: "network-traffic",
|
||||
size: 0,
|
||||
aggs: {
|
||||
"ipv4-subnets": {
|
||||
ip_prefix: {
|
||||
field: "ipv4",
|
||||
prefix_length: 24,
|
||||
append_prefix_length: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user