39 lines
778 B
Plaintext
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);
|
|
----
|