title: Querying Elasticsearch by combining a range and a term match json format
body: <p>I am trying to query an Elasticsearch index by a time range, and additionally have a term match a specific string value.</p>
  
  <p>I have tried this query, which seems pretty straightforward:</p>
  
  <pre><code> {
    "query" : {
      "bool": {
        "must": [
          {
            "match": {
              "method": "/customer/help"
            }
          },
          {
            "range" : {
              "startTime": {
                "from" : "2015-10-20T13:00-04:00",
                "to" : "2015-10-20T14:00-04:00"
              }
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>In this case, I want all of the documents within the given time range that also have a method value of <code>"/customer/help"</code>.</p>
  
  <p>In my results, I am receiving results that are within the time range, but I am getting documents that have various values for the <code>"method"</code> field, when I just want results with <code>"/customer/help"</code> in that field.</p>