Upgraded from 7.1 to 7.10 when re-index found this error "unknown parameter [dynamic] on mapper" anyone found this before? please help
This error
"failures" : [ {
"index" : "xxx_product_202105_test",
"type" : "_doc",
"id" : "xxx22776006",
"cause" : {
"type" : "mapper_parsing_exception",
"reason" : "unknown parameter [dynamic] on mapper [use_config_max_sale_qty] of type [null]"
},
"status" : 400
This is my template
PUT _template/template_1
{
"index_patterns": [
"*_product_*"
],
"mappings": {
"_source": {
"enabled": true
},
"date_detection": false,
"dynamic": "true",
"properties": {
"overall_rating": {
"dynamic": "false",
"properties": {
"rating": {
"type": "float"
},
"total_vote": {
"type": "float"
}
}
}
},
"dynamic_templates": [
{
"brand": {
"match": "brand",
"mapping": {
"dynamic": false,
"properties": {
"brand_id": {
"type": "keyword"
}
}
}
}
},
{
"configurable_products": {
"match": "configurable_products",
"mapping": {
"type": "nested"
}
}
},
{
"categories": {
"match": "categories",
"mapping": {
"type": "object"
}
}
},
{
"locale": {
"match": "locale",
"mapping": {
"type": "object"
}
}
},
{
"locale_key": {
"match": "*",
"path_match": "*locale.*",
"path_unmatch": "*locale.*.*",
"mapping": {
"type": "object"
}
}
},
{
"aggregated_code": {
"match": "aggregated_code",
"mapping": {
"type": "object"
}
}
},
{
"aggregated_code_key": {
"match": "*",
"path_match": "*aggregated_code.*",
"path_unmatch": "*aggregated_code.*.*",
"mapping": {
"type": "object"
}
}
},
{
"shipping_delivery_methods": {
"match": "shipping_delivery_methods",
"mapping": {
"type": "object"
}
}
},
{
"custom_attributes": {
"match": "custom_attributes",
"mapping": {
"dynamic": "false",
"properties" : {
"shipping_methods" : {
"type" : "keyword"
}
}
}
}
},
{
"is_in_stock": {
"match": "is_in_stock",
"mapping": {
"type": "boolean"
}
}
},
{
"offline_salable": {
"match": "offline_salable",
"mapping": {
"type": "boolean"
}
}
},
{
"online_salable": {
"match": "online_salable",
"mapping": {
"type": "boolean"
}
}
},
{
"locale.name": {
"match": "name",
"path_match": "*locale.*.name",
"mapping": {
"analyzer": "word_stem_anl",
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword_nml",
"ignore_above": 256
},
"suggestion_v2": {
"type": "text",
"analyzer": "edge_ngram310_anl"
},
"exact": {
"type": "text",
"analyzer": "word_anl"
}
}
}
}
},
{
"categories.id": {
"match": "id",
"path_match": "*categories.id",
"mapping": {
"type": "keyword"
}
}
},
{
"color_group_name": {
"match": "color_group_name",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword_nml",
"ignore_above": 256
}
}
}
}
},
{
"brand_name": {
"match": "brand_name",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword_nml",
"ignore_above": 256
},
"suggestion_v2": {
"type": "text",
"analyzer": "edge_ngram310_anl"
},
"exact": {
"type": "text",
"analyzer": "word_anl"
}
}
}
}
},
{
"sku": {
"match": "sku",
"mapping": {
"analyzer": "sku_anl",
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword_nml"
}
}
}
}
},
{
"id": {
"match": "id",
"mapping": {
"type": "keyword"
}
}
},
{
"recommended": {
"match": "recommended",
"mapping": {
"type": "keyword"
}
}
},
{
"recommened_sort_order": {
"match": "recommened_sort_order",
"mapping": {
"type": "integer"
}
}
},
{
"pm2_5": {
"match": "pm2_5",
"mapping": {
"type": "keyword"
}
}
},
{
"room_size_sqm": {
"match": "room_size_sqm",
"mapping": {
"type": "keyword"
}
}
},
{
"ranking": {
"match": "ranking",
"mapping": {
"type": "integer"
}
}
},
{
"flash_deal": {
"match": "flash_deal",
"mapping": {
"type": "keyword"
}
}
},
{
"flash_deal_from": {
"match": "flash_deal_from",
"mapping": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss"
}
}
},
{
"flash_deal_to": {
"match": "flash_deal_to",
"mapping": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss"
}
}
},
{
"flash_deal_position": {
"match": "flash_deal_position",
"mapping": {
"type": "integer"
}
}
},
{
"best_sellers": {
"match": "best_sellers",
"mapping": {
"type": "keyword"
}
}
},
{
"configurable_product_links": {
"match": "configurable_product_links",
"mapping": {
"type": "keyword"
}
}
},
{
"child_skus": {
"match": "child_skus",
"mapping": {
"analyzer": "sku_anl",
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"normalizer": "keyword_nml"
}
}
}
}
},
{
"ignore": {
"match": "*",
"mapping": {
"dynamic": "false",
"index": false,
"enabled": false
}
}
}
]
},
"settings": {
"number_of_shards": "8",
"auto_expand_replicas" : "0-all",
"max_result_window": "1000000",
"analysis": {
"char_filter": {
"connector_flt": {
"type": "pattern_replace",
"pattern": "[-']",
"replacement": ""
},
"numeric_delim_flt": {
"type": "pattern_replace",
"pattern": "([0-9]*\\.?[0-9]+)",
"replacement": " $1 "
}
},
"filter": {
"edge_ngram310_flt": {
"type": "edge_ngram",
"min_gram": "3",
"max_gram": "10"
},
"snowball_flt": {
"type": "snowball"
},
},
}
}