nyaruka / gocommon

Common utility library for the TextIt platform.
Other
7 stars 11 forks source link

Replace deprecated syntax for ES range queries #126

Open rowanseymour opened 5 months ago

rowanseymour commented 5 months ago

We're still using the old deprecated syntax for range queries, e.g.

"created_on": {
  "from": "2018-06-23T00:00:00-04:00",
  "include_lower": true,
  "include_upper": true,
  "to": null
}

should be

"created_on": {
  "gte": "2018-06-23T00:00:00-04:00"
}

See https://github.com/elastic/elasticsearch/issues/48538