title: Elasticsearch: Why is my query returning too many results?
body: <p>I'm querying <code>http://elasticsearch.myserver.net:9200/my_index/foo/</code> with the following query:</p>
  
  <pre><code>{
  "query": {
      "ids": {
        "type": "foo",
        "values": [
          "fff",
          "bar",
          "baz"
        ]
      }
    }
  }
  </code></pre>
  
  <p>But I'm getting a response with 12 hits, which is the total number of items of type foo in my index, rather than three, which is the number I requested. I'm making this query by typing it into the "any request" tab of elasticsearch head. What is going on?</p>
  
  <p>Update: </p>
  
  <p>I've also tried </p>
  
  <pre><code>{
    "query": {
      "bool": {
        "must": [
          {
            "ids": {
              "type": "programme",
              "values": [
                "fff",
                "330930",
                "200005"
              ]
            }
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>with the same result.</p>