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

39 lines
778 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: "ecommerce-customers",
mappings: {
properties: {
"total_quantity.sum": {
type: "double",
},
total_quantity: {
type: "object",
},
taxless_total_price: {
type: "object",
},
"taxless_total_price.sum": {
type: "double",
},
"order_id.cardinality": {
type: "long",
},
customer_id: {
type: "keyword",
},
"total_quantity.max": {
type: "integer",
},
order_id: {
type: "object",
},
},
},
});
console.log(response);
----