I can not use ES-REST to bulk api

My Code:
.......
HttpEntity httpEntity = new NStringEntity("{'index':{'_id':40}} {'name':'lala'}");
Response response = restClient.performRequest(HttpMethod.POST.getName(), "/my_index/product/_bulk", Collections.<String, String>emptyMap(), httpEntity);

Throw exception:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.