Skip to content

Instantly share code, notes, and snippets.

@devilankur18
Created October 12, 2012 00:00
Show Gist options
  • Save devilankur18/3876495 to your computer and use it in GitHub Desktop.
Save devilankur18/3876495 to your computer and use it in GitHub Desktop.
Routing Mapping issue with elasticsearch 19.9
$ curl -PUT http://localhost:9200/xyz/message/_mapping?pretty=true -d '{"message" : {"_routing": { "path": "_org"} }}'
Output
{
"ok" : true,
"acknowledged" : true
}
$ curl http://localhost:9200/_mapping?pretty=true
{
"xyz" : {
"message" : {
"properties" : {
"_apikey" : {
"type" : "string"
},
"_org" : {
"type" : "string"
},
"message" : {
"type" : "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment