diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/count/HttpCountAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/count/HttpCountAction.java index f53693bd36f..4bf7e95564e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/count/HttpCountAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/count/HttpCountAction.java @@ -44,6 +44,8 @@ public class HttpCountAction extends BaseHttpServerHandler { @Inject public HttpCountAction(Settings settings, HttpServer httpService, Client client) { super(settings, client); + httpService.registerHandler(HttpRequest.Method.POST, "/_count", this); + httpService.registerHandler(HttpRequest.Method.GET, "/_count", this); httpService.registerHandler(HttpRequest.Method.POST, "/{index}/_count", this); httpService.registerHandler(HttpRequest.Method.GET, "/{index}/_count", this); httpService.registerHandler(HttpRequest.Method.POST, "/{index}/{type}/_count", this);