I can not use ES-REST to bulk api


(Ming zhang) #1

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:


(system) #2

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