I have been using the gem chewy in my rails app, to create index and search in ElasticSearch. Previously, I was using elastic search version 5.6, now I would like to upgrade it to 7.7. When I try to create an index I am getting the below error. The upgraded chewy version that I am using in 5.1.0
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [country : {value={}}] [city : {value={}}] [state : {value={}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [country : {value={}}] [city : {value={}}] [state : {value={}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [country : {value={}}] [city : {value={}}] [state : {value={}}]"}},"status":400}
However, it worked perfectly well with 5.6. I tried to find any change logs in chewy but couldn't come across any. Please help me understand where the issue is. Thanks