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:

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