// 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: "kibana_sample_data_ecommerce", size: 0, track_total_hits: "false", aggregations: { sampling: { random_sampler: { probability: 0.1, }, aggs: { price_percentiles: { percentiles: { field: "taxful_total_price", }, }, }, }, }, }); console.log(response); ----