From 9f33bd523eebbe14ca8a789619ed4fe1720dbb4b Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Sun, 6 Mar 2022 18:55:26 -0800 Subject: [PATCH] Remove type end-points from count action Signed-off-by: Suraj Singh --- .../org/opensearch/rest/action/search/RestCountAction.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/main/java/org/opensearch/rest/action/search/RestCountAction.java b/server/src/main/java/org/opensearch/rest/action/search/RestCountAction.java index 04ee5fdd5b621..6cb00633de441 100644 --- a/server/src/main/java/org/opensearch/rest/action/search/RestCountAction.java +++ b/server/src/main/java/org/opensearch/rest/action/search/RestCountAction.java @@ -66,10 +66,7 @@ public List routes() { new Route(GET, "/_count"), new Route(POST, "/_count"), new Route(GET, "/{index}/_count"), - new Route(POST, "/{index}/_count"), - // Deprecated typed endpoints. - new Route(GET, "/{index}/{type}/_count"), - new Route(POST, "/{index}/{type}/_count") + new Route(POST, "/{index}/_count") ) ); }