Created
October 12, 2012 00:00
-
-
Save devilankur18/3876495 to your computer and use it in GitHub Desktop.
Routing Mapping issue with elasticsearch 19.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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