// 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); ----