Skip to content

Enable Direct Access to ConstantKeyword from elasticsearch_dsl Module #1842

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

Closed
alirezaazadi opened this issue Jun 12, 2024 · 1 comment
Closed

Comments

@alirezaazadi
Copy link
Contributor

It has been requested for the ConstantKeyword support in this issue: Support for constant_keyword #1373

The field has been added, but it's only available through this path: from elasticsearch_dsl.field import ConstantKeyword.
I wonder whether it's possible to make it accessible through from elasticsearch_dsl import ConstantKeyword like the rest of the fields? If the answer is positive, I would be happy to create a PR and apply this small change :)

@miguelgrinberg
Copy link
Collaborator

Yes, this makes sense, let's do it.

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

No branches or pull requests

2 participants