Created
May 3, 2014 22:30
-
-
Save AaronRustad/590817b7c85ee7b9bb4d to your computer and use it in GitHub Desktop.
RoutingException
This file contains hidden or 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
PUT http://vagrant:9200/video_catalogs/video_catalog/48 [status:500, request:0.013s, query:n/a] | |
> {"video_catalog":{"id":48,"name":"MyES2Catalog","category_id":25,"whitelist":[4],"whitelist_size":1}} | |
< {"error":"RoutingMissingException[routing is required for [video_catalogs]/[video_catalog]/[48]]","status":500} | |
[500] {"error":"RoutingMissingException[routing is required for [video_catalogs]/[video_catalog]/[48]]","status":500} |
This file contains hidden or 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 -X POST "http://vagrant:9200/video_catalogs/video_catalog/46" -d '{"id":46,"name":"MyCompany","category_id":4,"whitelist":[15],"whitelist_size":1}' | |
# 2014-05-03 15:57:38:684 [201] | |
# | |
# { | |
# "ok":true, | |
# "_index":"video_catalogs", | |
# "_type":"video_catalog", | |
# "_id":"46", | |
# "_version":1 | |
# } |
This file contains hidden or 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
{:video_catalog=> | |
{:properties=> | |
{:id=>{:index=>:not_analyzed, :type=>"string"}, | |
:category_id=>{:index=>:not_analyzed, :type=>"string"}, | |
:name=>{:analyzer=>"snowball", :type=>"string"}, | |
:whitelist=>{:type=>"string"}, | |
:whitelist_size=>{:index=>:not_analyzed, :type=>:integer}}}} |
This file contains hidden or 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
{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment