title: Are "from" and "gte"/"gt" equivalent in range query in ElasticSearch?
body: <p>I've just discovered that a package that I use for ElasticSearch operations <a href="https://github.com/olivere/elastic" rel="nofollow noreferrer">https://github.com/olivere/elastic</a> creates the following range queries with <code>from</code>, <code>to</code>, <code>include_lower</code> and <code>include_upper</code> tags:</p>
  
  <pre><code>"query": {
      "range": {
          "myfield": {
              "from": 0.6666,
              "include_lower": true,
              "include_upper": true,
              "to": null
          }
      }
  }
  </code></pre>
  
  <p>Whereas <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html" rel="nofollow noreferrer">ES documentation</a> states that the following should be used.</p>
  
  <pre><code>"query": {
      "range": {
          "myfield": {
              "gte": 0.6666
          }
      }
  }
  </code></pre>
  
  <p>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?</p>