Skip to content

Range queries produces with deprecated from/to syntax #1269

@pmalekn

Description

@pmalekn

Which version of Elastic are you using?

[ ] elastic.v7 (for Elasticsearch 7.x)
[x] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)

Please describe the expected behavior

Package should produce range query with gt, gte, lt, lte etc. fields

Please describe the actual behavior

Package produces range query with from, to, etc.

A comment from elasticsearch repo mentioning that this was already deprecated in 0.90.4
elastic/elasticsearch#48538 (comment)

and a related issue from 2016
#196

Any steps to reproduce the behavior?

Create a range query with lower limit .Gte() or upper limit .Lte() and observe the produced source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions