when using /_search/scroll/... for the scroll_id (and not provided as a parameter), use scroll_id as a parameter.

This commit is contained in:
kimchy 2010-04-19 12:26:40 +03:00
parent 8ce9b3b1a0
commit 565fc44f89
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ public class RestSearchScrollAction extends BaseRestHandler {
controller.registerHandler(GET, "/_search/scroll", this);
controller.registerHandler(POST, "/_search/scroll", this);
controller.registerHandler(GET, "/_search/scroll/{scrollId}", this);
controller.registerHandler(POST, "/_search/scroll/{scrollId}", this);
controller.registerHandler(GET, "/_search/scroll/{scroll_id}", this);
controller.registerHandler(POST, "/_search/scroll/{scroll_id}", this);
}
@Override public void handleRequest(final RestRequest request, final RestChannel channel) {