Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index_filter support for field capabilities API elastic search compatible endpoints #5693

Open
ruoliu2 opened this issue Feb 24, 2025 · 4 comments
Labels
enhancement New feature or request

Comments

@ruoliu2
Copy link

ruoliu2 commented Feb 24, 2025

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
            }
        },
    }
}
@ruoliu2 ruoliu2 added the enhancement New feature or request label Feb 24, 2025
@rdettai
Copy link
Collaborator

rdettai commented Feb 24, 2025

Could you specify your feature request a bit?

  • are you referring to the field capabilities API?
  • could you describe the usecase a bit more?

@ruoliu2 ruoliu2 changed the title index_filter support for elastic search compatible endpoints index_filter support for field capacities API elastic search compatible endpoints Feb 24, 2025
@ruoliu2 ruoliu2 changed the title index_filter support for field capacities API elastic search compatible endpoints index_filter support for field capabilities API elastic search compatible endpoints Feb 24, 2025
@ruoliu2
Copy link
Author

ruoliu2 commented Feb 24, 2025

  • yes I'm referring to the field capabilities API
  • I just updated the description some more, let me know if its good

@rdettai
Copy link
Collaborator

rdettai commented Feb 27, 2025

It's perfect thanks! Do you want to give it a try?

@ruoliu2
Copy link
Author

ruoliu2 commented Feb 28, 2025

yeah I'd love to! I'll take a look this weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants