Remove type end-points from no-op bulk and search action (#2261)
Signed-off-by: Suraj Singh <surajrider@gmail.com>
This commit is contained in:
parent
0bd7850bed
commit
223d0b2a1c
|
@ -67,9 +67,7 @@ public class RestNoopBulkAction extends BaseRestHandler {
|
|||
new Route(POST, "/_noop_bulk"),
|
||||
new Route(PUT, "/_noop_bulk"),
|
||||
new Route(POST, "/{index}/_noop_bulk"),
|
||||
new Route(PUT, "/{index}/_noop_bulk"),
|
||||
new Route(POST, "/{index}/{type}/_noop_bulk"),
|
||||
new Route(PUT, "/{index}/{type}/_noop_bulk")
|
||||
new Route(PUT, "/{index}/_noop_bulk")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -83,7 +81,6 @@ public class RestNoopBulkAction extends BaseRestHandler {
|
|||
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {
|
||||
BulkRequest bulkRequest = Requests.bulkRequest();
|
||||
String defaultIndex = request.param("index");
|
||||
String defaultType = request.param("type");
|
||||
String defaultRouting = request.param("routing");
|
||||
String defaultPipeline = request.param("pipeline");
|
||||
Boolean defaultRequireAlias = request.paramAsBoolean("require_alias", null);
|
||||
|
|
|
@ -53,9 +53,7 @@ public class RestNoopSearchAction extends BaseRestHandler {
|
|||
new Route(GET, "/_noop_search"),
|
||||
new Route(POST, "/_noop_search"),
|
||||
new Route(GET, "/{index}/_noop_search"),
|
||||
new Route(POST, "/{index}/_noop_search"),
|
||||
new Route(GET, "/{index}/{type}/_noop_search"),
|
||||
new Route(POST, "/{index}/{type}/_noop_search")
|
||||
new Route(POST, "/{index}/_noop_search")
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue