Skip to content

Commit

Permalink
Count API: Also accepts /_count uri to search over all indices. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed Feb 16, 2010
1 parent 854fc21 commit 06cbc0a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06cbc0a

Please sign in to comment.