Hi @bwillis614,
the example helped me reproduce the problem and I could also solve your original problem with mixed long double values this way.
The only change I made was here:
"upcharges": {
"type": "object",
"enabled": false,
"include_in_all": false,
"properties": {
"amount": {
"type": "double"
}
}
}
For reference, I'll also include the complete mapping:
PUT /price_list_tier
{
"mappings": {
"price_list_tier": {
"_source": {
"excludes": [
"upcharges",
"integrations.lemonstand.price_tiers"
]
},
"properties": {
"account_id": {
"type": "string"
},
"amount": {
"type": "double"
},
"created_on": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"integrations": {
"properties": {
"lemonstand": {
"properties": {
"last_sync": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"shop_customer_group_id": {
"type": "string"
},
"price_tiers": {
"type": "object",
"enabled": false,
"include_in_all": false
}
}
}
}
},
"max_qty": {
"type": "long"
},
"min_qty": {
"type": "long"
},
"name": {
"type": "string"
},
"price_list_id": {
"type": "string"
},
"product_id": {
"type": "string"
},
"product_name": {
"type": "string"
},
"product_number": {
"type": "string"
},
"sku": {
"type": "string"
},
"type": {
"type": "string"
},
"upcharges": {
"type": "object",
"enabled": false,
"include_in_all": false,
"properties": {
"amount": {
"type": "double"
}
}
},
"updated_on": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"variants": {
"type": "string"
}
}
}
}
}
With this change, I could add your document to the index without any problems:
POST /store/price_list_tier/581375b968943f0e98a6266e
{
"name": "n1",
"variants": [
"*"
],
"upcharges": [
{
"size": "XXL",
"amount": 0
},
{
"size": "2XL",
"amount": 0
},
{
"size": "3XL",
"amount": 0
},
{
"size": "4XL",
"amount": 2.5
},
{
"size": "5XL",
"amount": 2.5
}
],
"min_qty": 1,
"max_qty": 1,
"type": "USD",
"amount": 3.7,
"created_on": "2016-10-13T12:18:59.172+0000",
"updated_on": null,
"integrations": {
"lemonstand": {
"last_sync": "2016-10-17T21:02:32.426+0000",
"price_tiers": [
{
"sku": "10847363052669",
"pricetier_id": 25142
}
],
"shop_customer_group_id": 22
}
},
"account_id": "127fe169-720e-4e4a-ba48-448e054d4ef2",
"price_list_id": "c7a224bc-67b4-d173-8df1-1d2dfe636890",
"product_id": "b2ffe54c-7fe6-17e9-1f4e-ce1826ec7a1b",
"product_number": "4400CY",
"sku": "10847363052669",
"product_name": "Creeper "
}
Daniel