Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URI routing parameter does not work with Bulk API #4053

Closed
HenleyChiu opened this Issue Nov 2, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@HenleyChiu
Copy link

HenleyChiu commented Nov 2, 2013

When I specify the routing in BULK requests, it does not import all documents to the same shard I specify. It does work when I index 1 document at a time, or when I search. Is this a bug in the Bulk API?

curl -XPOST 'http://192.168.1.115:9200/_bulk?routing=a' -d '
{ "index" : { "_index" : "articles", "_type" : "article", "_id" : "1" } }
{ "title" : "value1" }
{ "delete" : { "_index" : "articles", "_type" : "article", "_id" : "2" } }
{ "create" : { "_index" : "articles", "_type" : "article", "_id" : "3" } }
{ "title" : "value3" }
{ "update" : {"_id" : "1", "_type" : "article", "_index" : "index1"} }
{ "doc" : {"field2" : "value2"} }'

@ghost ghost assigned kimchy Nov 3, 2013

@kimchy

This comment has been minimized.

Copy link
Member

kimchy commented Nov 3, 2013

Thats because the routing parameter is not applied at all globally from the URI for bulk request. We can support that..

@kimchy kimchy closed this in a8535e2 Nov 3, 2013

kimchy added a commit that referenced this issue Nov 3, 2013

mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.