I've just discovered that a package that I use for ElasticSearch operations https://github.com/olivere/elastic creates the following range queries with from
, to
, include_lower
and include_upper
tags:
"query": {
"range": {
"myfield": {
"from": 0.6666,
"include_lower": true,
"include_upper": true,
"to": null
}
}
}
Whereas ES documentation states that the following should be used.
"query": {
"range": {
"myfield": {
"gte": 0.6666
}
}
}
To my surprise the former (undocumented) works the same way as the latter. Are they equivalent? Should I expect that to work in the long run? Is that specified somewhere in ES?