Search API: Also accepts /_search uri to search over all indices. Closes #16.
This commit is contained in:
parent
66b86a7a03
commit
854fc21a70
|
@ -58,6 +58,8 @@ public class HttpSearchAction extends BaseHttpServerHandler {
|
||||||
|
|
||||||
@Inject public HttpSearchAction(Settings settings, HttpServer httpService, Client client) {
|
@Inject public HttpSearchAction(Settings settings, HttpServer httpService, Client client) {
|
||||||
super(settings, client);
|
super(settings, client);
|
||||||
|
httpService.registerHandler(HttpRequest.Method.GET, "/_search", this);
|
||||||
|
httpService.registerHandler(HttpRequest.Method.POST, "/_search", this);
|
||||||
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/_search", this);
|
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/_search", this);
|
||||||
httpService.registerHandler(HttpRequest.Method.POST, "/{index}/_search", this);
|
httpService.registerHandler(HttpRequest.Method.POST, "/{index}/_search", this);
|
||||||
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/{type}/_search", this);
|
httpService.registerHandler(HttpRequest.Method.GET, "/{index}/{type}/_search", this);
|
||||||
|
|
Loading…
Reference in New Issue