Skip to content

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

Closed
elastic/elasticsearch-specification
#4399
@samk1

Description

@samk1

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions