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

20 lines
443 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.indices.create({
index: "stats-index",
mappings: {
properties: {
agg_metric: {
type: "aggregate_metric_double",
metrics: ["min", "max", "sum", "value_count"],
default_metric: "max",
},
},
},
});
console.log(response);
----