We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the column name has any __, then the Query constructor is converting into .
__
.
from elasticsearch import Elasticsearch from elasticsearch_dsl import Q, Search Q( "range", some__field_name={ "gte": "2022-10-01", "lte": "2022-11-30" }, ),
Constructed resulting query is as follows. As you can see, its converting __ in field name to .
{ "range": { "some.field_name": { "gte": "2022-10-01", "lte": "2022-11-30" } } }
when changed to a hand crafted json, then it works
{ "range": { "some__field_name": { "gte": "2022-10-01", "lte": "2022-11-30" } } }
Let me know if there is a missing step or a known issue and if some work around exists.
The text was updated successfully, but these errors were encountered:
Hi @sudheer82 you can use _expand__to_dot parameter
_expand__to_dot
Example:
from elasticsearch import Elasticsearch from elasticsearch_dsl import Q, Search Q( "range", _expand__to_dot=False, some__field_name={ "gte": "2022-10-01", "lte": "2022-11-30" }, ),
Sorry, something went wrong.
No branches or pull requests
If the column name has any
__
, then the Query constructor is converting into.
Constructed resulting query is as follows. As you can see, its converting
__
in field name to.
when changed to a hand crafted json, then it works
Let me know if there is a missing step or a known issue and if some work around exists.
The text was updated successfully, but these errors were encountered: