UpdateRequest always doing partial update?

(Peter Ponzel) #1


I'm using RestHighLevelClient 6.3.0 and wanted to migrate my "LowLevelClient" implementation of updating documents from

client.getLowLevelClient().performRequest("PUT", "/index/type/id", Collections.emptyMap(), new StringEntity("{...}", ContentType.APPLICATION_JSON));


final UpdateRequest updateRequest = new UpdateRequest("index", "type", "id");

however it seems that the update method of the high level client is implicitly calling the /index/type/id/_update endpoint with a HTTP POST, which is doing a partial update.

is there any way to do a "non-partial update" using the /index/type/id with HTTP PUT ?

Best Regards,

(David Pilato) #2

Then it's an index request.

(system) #3

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