Elasticsearch.net - Range Query : <p>I'm trying to query an Elasticsearch index from C# via <a href="https://github.com/elastic/elasticsearch-net" rel="noreferrer">Elasticsearch.net</a> (not NEST). Specifically, I need to get all documents with a status of "success" that have been created since a specific date. In an attempt to do this, I have:</p>

<pre><code>var query = new {
  query = new {
    match = new {
      field="status",
      query="success"
    }
  },

  range = new {
    ?
  }
};
</code></pre>

<p>I'm not sure what to use for the <code>range</code> part. In fact, I'm not even sure if my syntax for the <code>query</code> is correct. I don't really understand how the C# syntax maps to the Query DSL in Elasticsearch. Any help is appreciated.</p>

<p>Thank you!</p>
