I finally had to give up. I used the following (quite straightforward) code with ES 2.3.5 client:
public static Client eSearchClient;
DeleteResponse response = RuntimeConfiguration.eSearchClient
.prepareDelete(INDEX_NAME, DOCUMENT_TYPE, String.valueOf(serviceProvider.getServiceProviderId()))
After upgrading to ES 5.0.0 (and switching to Maven) I keep getting the following exception:
"Error building toString out of XContent: com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value
My POM for ES looks like that:
I'd appreciate any help.