Is your feature request related to a problem? Please describe.
Need index filter support for field capabilities API for large scale dataset, give good entry point for understanding data.
Describe the solution you'd like
support index_filter for field capacities API
support query dsl in the index filter to support filter feature, and gives list of fields and their features (as normal field cap API) after filtering
Describe alternatives you've considered
NA
elastic search API doc
https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-field-caps-1
example use case with elastic search
http://localhost:9200/test/_field_caps?fields=* { "index_filter": { "term": { "age": 25 } }, }
example response
{
"indices": [
"test"
],
"fields": {
"hair": {
"text": {
"type": "text",
"metadata_field": false,
"searchable": true,
"aggregatable": false
}
},
"city": {
"text": {
"type": "text",
"metadata_field": false,
"searchable": true,
"aggregatable": false
}
},
"name": {
"text": {
"type": "text",
"metadata_field": false,
"searchable": true,
"aggregatable": false
}
},
}
}