Files
elasticsearch-js/docs/doc_examples/56da9c55774f4c2e8eadde0579bdc60c.asciidoc
2024-07-29 17:10:05 -05:00

27 lines
491 B
Plaintext

// 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: "test*",
filter_path: "aggregations",
aggs: {
tm: {
top_metrics: {
metrics: {
field: "m",
},
sort: {
s: {
order: "asc",
numeric_type: "double",
},
},
},
},
},
});
console.log(response);
----