diff --git a/plugins/delete-by-query/src/main/java/org/elasticsearch/action/deletebyquery/TransportDeleteByQueryAction.java b/plugins/delete-by-query/src/main/java/org/elasticsearch/action/deletebyquery/TransportDeleteByQueryAction.java index de8d3c84f1a..7f06ce6a6a5 100644 --- a/plugins/delete-by-query/src/main/java/org/elasticsearch/action/deletebyquery/TransportDeleteByQueryAction.java +++ b/plugins/delete-by-query/src/main/java/org/elasticsearch/action/deletebyquery/TransportDeleteByQueryAction.java @@ -174,13 +174,15 @@ public class TransportDeleteByQueryAction extends HandledTransportAction nodeModules() { - return Collections.singletonList(new DeleteByQueryModule()); + public void onModule(ActionModule actionModule) { + actionModule.registerAction(DeleteByQueryAction.INSTANCE, TransportDeleteByQueryAction.class); } + + public void onModule(RestModule restModule) { + restModule.addRestAction(RestDeleteByQueryAction.class); + } + }