Skip to content

interface QueryDslRangeQueryBase suggests from and to are valid parameters when they will not be accepted by elasticsearch #2846

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

Open
samk1 opened this issue May 20, 2025 · 1 comment · May be fixed by elastic/elasticsearch-specification#4399

Comments

@samk1
Copy link

samk1 commented May 20, 2025

🐛 Bug report

See types.ts:
https://github.com/elastic/elasticsearch-js/blob/a1dc6f55ee04134384e23b937f200c792b64811e/src/api/types.ts#L9391

Supported parameters for range query:
https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-range-query

To reproduce

Make a query to elasticsearch with a range leaf node using from and to as parameters.

Expected behavior

Either elasticsearch should support from and to or these should be removed from the types.

Node.js version

22.x

@elastic/elasticsearch version

9.0.0

Operating system

macOS

Any other relevant environment information

No response

@JoshMock
Copy link
Member

I've opened elastic/elasticsearch-specification#4399 in the specification repo to remove these fields. Once that merges, new code will be generated in this client and shipped in the next patch or minor release.

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

Successfully merging a pull request may close this issue.

2 participants