1313import org .elasticsearch .action .support .IndicesOptions ;
1414import org .elasticsearch .client .internal .node .NodeClient ;
1515import org .elasticsearch .common .Strings ;
16- import org .elasticsearch .common .logging .DeprecationCategory ;
17- import org .elasticsearch .common .logging .DeprecationLogger ;
1816import org .elasticsearch .rest .BaseRestHandler ;
1917import org .elasticsearch .rest .RestRequest ;
2018import org .elasticsearch .rest .Scope ;
3028@ ServerlessScope (Scope .INTERNAL )
3129public class RestIndicesSegmentsAction extends BaseRestHandler {
3230
33- private static final DeprecationLogger DEPRECATION_LOGGER = DeprecationLogger .getLogger (RestIndicesSegmentsAction .class );
34-
3531 public RestIndicesSegmentsAction () {}
3632
3733 @ Override
@@ -49,13 +45,6 @@ public RestChannelConsumer prepareRequest(final RestRequest request, final NodeC
4945 IndicesSegmentsRequest indicesSegmentsRequest = new IndicesSegmentsRequest (
5046 Strings .splitStringByCommaToArray (request .param ("index" ))
5147 ).withVectorFormatsInfo (request .paramAsBoolean ("vector_formats" , false ));
52- if (request .hasParam ("verbose" )) {
53- DEPRECATION_LOGGER .warn (
54- DeprecationCategory .INDICES ,
55- "indices_segments_action_verbose" ,
56- "The [verbose] query parameter for [indices_segments_action] has no effect and is deprecated"
57- );
58- }
5948 indicesSegmentsRequest .indicesOptions (IndicesOptions .fromRequest (request , indicesSegmentsRequest .indicesOptions ()));
6049 return channel -> new RestCancellableNodeClient (client , request .getHttpChannel ()).admin ()
6150 .indices ()
0 commit comments