title: Elasticsearch. Range query for strings with dashes
body: <p>I'm using elasticsearch with data that have string-field with date values, like this:</p>
  
  <p><code>"2016-01-25 18:40:18.933"</code></p>
  
  <p>I'm trying to use range filter for getting values from date to date. For example:
      <pre>    "query" : {
          "filtered" : {
              "query" : {
                  "range" : {
                      "createdDate" : {
                          "gte": "2015-11-01", 
                          "lte": "2016-01-25"
                      }
                  }
              }
          }
        }
      }
  </pre></p>
  
  <p>But results doesn't contain values with <code>"createdDate": "2015-12-14 20:28:23.557"</code></p>
  
  <p>If I use <code>"gte": "2015"</code> or <code>"gte": "2014-12-31"</code>, then values with <code>"createdDate": "2015-12-14"</code> will be included in the results.</p>
  
  <p>What's wrong in my query?</p>