The mpercolate api rest endpoint should also support http get.

This commit is contained in:
Martijn van Groningen 2013-11-01 11:09:17 +01:00
parent 29363d8139
commit 65fc90728e
1 changed files with 5 additions and 0 deletions

View File

@ -31,6 +31,7 @@ import org.elasticsearch.rest.*;
import java.io.IOException;
import static org.elasticsearch.rest.RestRequest.Method.GET;
import static org.elasticsearch.rest.RestRequest.Method.POST;
import static org.elasticsearch.rest.RestStatus.OK;
import static org.elasticsearch.rest.action.support.RestXContentBuilder.restContentBuilder;
@ -46,6 +47,10 @@ public class RestMultiPercolateAction extends BaseRestHandler {
controller.registerHandler(POST, "/_mpercolate", this);
controller.registerHandler(POST, "/{index}/_mpercolate", this);
controller.registerHandler(POST, "/{index}/{type}/_mpercolate", this);
controller.registerHandler(GET, "/_mpercolate", this);
controller.registerHandler(GET, "/{index}/_mpercolate", this);
controller.registerHandler(GET, "/{index}/{type}/_mpercolate", this);
}
@Override