elasticsearch change field type mapping to nested

elasticsearch

Solution

Mapping cannot be updated for existing fields. The only thing you can do is `DELETE` your index and then `PUT` it back and `POST` mapping all over again.

Problem

I'm trying to change an elasticsearch field to nested, I'm having problems with the command to do this. I'm not sure if it's because it's a couple of fields down that is giving me grief. Here's what I'm trying to input: ``` curl -XPUT 'http://localhost:9200/_mapping/data' -d ' { "data" : { "properties" : { "parsed" : { "properties" : { "PMSetup" : { "properties" : { "Result" : { "type" : "nested" "include_in_parent" : true }, } } } } } } } ' ``` Can anyone help with this? Thanks!

Original source