Skip to content

_cat/shards does not show deleted document count #11677

@rayshrey

Description

@rayshrey

Is your feature request related to a problem? Please describe

While _cat/indices and _cat/segments both show the deleted document count, _cat/shards has no option for displaying the deleted document count.

Whenever we need deleted document count on a shard level we either have to aggregate results of _cat/segments or have to reply on _stats call with level set to shard.

Adding deleted doc count to _cat/shards will bring a uniformity with _cat/index and _cat/segments and will be handy for knowing deleted document count on a shard level as well.

Describe the solution you'd like

_cat/shards should include a deleted document count parameter like the one shown below

index  shard prirep state      docs del_docs store ip        node
index2 0     p      STARTED       9    0       5kb 127.0.0.1 b0be8357b2c9.ant.amazon.com

Related component

Other

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    OtherenhancementEnhancement or improvement to existing feature or requestv2.12.0Issues and PRs related to version 2.12.0v3.0.0Issues and PRs related to version 3.0.0

    Type

    No type

    Projects

    Status

    Planned work items

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions