From 854fc21a706e8df59bec77c781af43706be57e58 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 16 Feb 2010 10:16:34 +0200 Subject: [PATCH] Search API: Also accepts /_search uri to search over all indices. Closes #16. --- .../org/elasticsearch/http/action/search/HttpSearchAction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/search/HttpSearchAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/search/HttpSearchAction.java index 376ef42cc2d..43bd5381cd9 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/search/HttpSearchAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/http/action/search/HttpSearchAction.java @@ -58,6 +58,8 @@ public class HttpSearchAction extends BaseHttpServerHandler { @Inject public HttpSearchAction(Settings settings, HttpServer httpService, Client 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.POST, "/{index}/_search", this); httpService.registerHandler(HttpRequest.Method.GET, "/{index}/{type}/_search", this);