I have two Elastic Search version one is 7.3 and the second is 7.1. I am using flattened
data type for Elastic Search 7.3 and I also want to use this data type in Elastic Search 7.1. So that I can store my data as I stored in Elastic Search 7.3.
I researched about flattened
data type and get to know that it's supported to 7.x but when I tried in 7.1 it gives me the mapper_parsing_exception
error.
What I tried is as shown below.
- In
Elastic Search 7.3
Index Creation
Response:PUT demo-flattened
{ "acknowledged": true, "shards_acknowledged": true, "index": "demo-flattened" }
Insert Mapping
Response:PUT demo-flattened/_mapping { "properties": { "host": { "type": "flattened" } } }
{ "acknowledged": true }
- In
Elastic Search 7.1
Response:PUT demo-flattened
{ "acknowledged": true, "shards_acknowledged": true, "index": "demo-flattened" }
Insert Mapping
Response:PUT demo-flattened/_mapping { "properties": { "host": { "type": "flattened" } } }
{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "No handler for type [flattened] declared on field [host]" } ], "type": "mapper_parsing_exception", "reason": "No handler for type [flattened] declared on field [host]" }, "status": 400 }
I want to use the flattened
data type in Elastic Search 7.1. Is there any alternative to use flattened
data type in the 7.1 version because flattened
data type is supported from Elastic Search 7.3.
Any help or suggestions will be appreciated.