elasticsearch change field type mapping to nested

Viewed 2177

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!

1 Answers
Related