title: Elasticsearch date range filter does not give proper results with gte, lte
body: <p>Its been observed that lte and gte both take lower bound values. how do I make it to take upper bound for lte and lower bound for gte??</p>
  
  <p>This is how my query looks</p>
  
  <pre><code>{
    "from": 0,
    "size": 40,
    "query": {
      "filtered": {
        "filter": {
      "bool": {
        "should": [
          {
            "range": {
              "CreatedOn": {
                "lte": "201505",
                "gte": "201404",
                "format": "yyyyMM"
              }
            }
          }
        ]
      }
        }
      }
    }
  }
  </code></pre>
  
  <p>The above query does not return me valid documents such as "2015-05-06T12:55:34.44", "2015-05-26T14:42:24.963" etc. It only returns "2015-05-01T11:42:24.963" from lte 201505 </p>