Skip to content

[Field_caps] field_caps request don't return fields for indices with readonly_state when include_empty_fields=false #125483

@kertal

Description

@kertal

Elasticsearch Version

9.0rc1

Installed Plugins

No response

Java Version

bundled

OS Version

macOS 15.3.2

Problem Description

When requesting field_stats using the param include_empty_fields set to false targeting an index in readonly state, the only fields returned are _tier, _index, _index_mode. There should be much more fields being returned, attaching a screenshot showing the problem with migrated indices from 7.18 -> 9.0rc1:

Image

Originally reported by @jughosta

Steps to Reproduce

  • Set an Elasticsearch index to readonly
  • Target the index with a field_caps request with the parameter include_empty_fields=false
  • The returned resultset just returns a few meta fields

Logs (if relevant)

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions