Remove "suggest" from Indices Stats and Node Stats REST API specs #43407
Labels
:Core/Infra/REST API
REST infrastructure and utilities
Team:Core/Infra
Meta label for core/infra team
Whilst going through #29635, I've noticed that the REST API spec for node stats contains
"suggest"
as anindex_metric
valueelasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json
Line 23 in 0a16e41
and indices stats contains
"suggest"
for ametric
valueelasticsearch/rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json
Line 20 in 7674de9
I believe both should no longer be there. I don't think that it'll be possible to delete these in 7.x however, because @elastic/es-clients use the specs to generate code, so removing may be a backwards breaking change.
Based on
elasticsearch/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestIndicesStatsAction.java
Lines 61 to 76 in 58516fa
and
elasticsearch/server/src/main/java/org/elasticsearch/action/admin/indices/stats/CommonStatsFlags.java
Lines 228 to 245 in 0a16e41
It also looks like the REST specs are missing
"recovery"
and"translog"
, which can be safely added to the specs.The text was updated successfully, but these errors were encountered: