title: ElasticSearch - How to query data between two period in hash
body: <p>In DB Postgresl, i have two column are <code>from</code> and <code>to</code> as below:</p>
  
  <pre><code>from: {"date": Date.new(2018,9,20)}
  to: {"date": Date.new(2018,9,30)}
  </code></pre>
  
  <p>Currently, i use ElasticSearch to search and i want to take out all record have time period from <code>from["date"]</code> to <code>to["date"]</code>. I have tried to search but no result, can you help me?</p>