Count API: Also accepts /_count uri to search over all indices. Closes #17.
This commit is contained in:
parent
854fc21a70
commit
06cbc0a95b
|
@ -44,6 +44,8 @@ public class HttpCountAction extends BaseHttpServerHandler {
|
||||||
|
|
||||||
@Inject public HttpCountAction(Settings settings, HttpServer httpService, Client client) {
|
@Inject public HttpCountAction(Settings settings, HttpServer httpService, Client client) {
|
||||||
super(settings, 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.POST, "/{index}/_count", this);
|
||||||
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/_count", this);
|
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/_count", this);
|
||||||
httpService.registerHandler(HttpRequest.Method.POST, "/{index}/{type}/_count", this);
|
httpService.registerHandler(HttpRequest.Method.POST, "/{index}/{type}/_count", this);
|
||||||
|
|
Loading…
Reference in New Issue