Hi,
i am tring to use the new Delete By Query Plugin in ES 2.0
DeleteByQueryResponse deleteByQueryResponse =
new DeleteByQueryRequestBuilder(client, DeleteByQueryAction.INSTANCE)
.setIndices("indices")
.get();
and getting the following error :
Caused by: java.lang.IllegalStateException: failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:56)
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)
at org.elasticsearch.action.deletebyquery.DeleteByQueryRequestBuilder.execute(DeleteByQueryRequestBuilder.java:172)
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:67)