I upgraded my elastic search server from 6.6 to 7.0. When I try to reindex I'm getting below error -
Root mapping definition has unsupported parameters.
My existing mapping for 'companies' index:
{
"companies_1555674629868": {
"aliases": {
"companies": {}
},
"mappings": {
"properties": {
"account": {
"type": "text",
"analyzer": "substring",
"fielddata": true
},
"account_id": {
"type": "text"
},
"addresses": {
"type": "integer"
},
"addresses_string": {
"type": "text",
"analyzer": "substring"
},
"amount_invoiced": {
"type": "double"
},
"cancelled_invoiced": {
"type": "integer"
},
"company_key": {
"type": "integer"
},
"contacts": {
"type": "integer"
},
"contacts_string": {
"type": "text"
},
"created_at": {
"type": "date"
},
"expected_order": {
"type": "integer"
},
"expected_value": {
"type": "double"
},
"id": {
"type": "integer"
},
"inquiries": {
"type": "integer"
},
"inquiries_size": {
"type": "integer"
},
"invoice_margin_percentage": {
"type": "double"
}
}
},
"settings": {
"index": {
"number_of_shards": "1",
"provided_name": "companies_1555674629868",
"max_result_window": "5000000",
"creation_date": "1555674629901",
"analysis": {
"filter": {
"replace_and": {
"pattern": "(\s)+and(\s)",
"type": "pattern_replace",
"replacement": ""
},
"whitespace_and_special_character_removal": {
"pattern": "[^A-Za-z0-9]+",
"type": "pattern_replace",
"replacement": ""
}
},
"analyzer": {
"fuzzy_substring": {
"filter": [
"replace_and",
"lowercase",
"whitespace_and_special_character_removal"
],
"tokenizer": "fuzzy_substring"
},
"keyword": {
"filter": [
"lowercase"
],
"tokenizer": "keyword"
},
"edge_ngram": {
"tokenizer": "edge_ngram"
},
"sku_substring": {
"filter": [
"lowercase"
],
"tokenizer": "sku_substring"
},
"substring": {
"filter": [
"lowercase"
],
"tokenizer": "substring"
},
"letter": {
"filter": [
"lowercase"
],
"tokenizer": "letter"
}
},
"tokenizer": {
"fuzzy_substring": {
"token_chars": [
"letter",
"digit",
"whitespace",
"punctuation",
"symbol"
],
"min_gram": "1",
"type": "ngram",
"max_gram": "30"
},
"sku_substring": {
"token_chars": [
"letter",
"digit"
],
"min_gram": "2",
"type": "edge_ngram",
"max_gram": "7"
},
"substring": {
"token_chars": [
"letter",
"digit",
"whitespace",
"punctuation",
"symbol"
],
"min_gram": "1",
"type": "ngram",
"max_gram": "30"
}
}
},
"number_of_replicas": "0",
"uuid": "DUxkRtutR4W7zZ3tfj41mw",
"version": {
"created": "6050199",
"upgraded": "7000199"
}
}
}
}
}