title: ElasticSearch JS query returns all document instead of filtered
body: <p>i am with this problem: ElasticSearch JS returns all documents when I try to filter them. I have two documents, only one that match with those filters, however ES returns all documents... There is no mappings created, only two documents created. I dont know what to do...</p>
  
  <p>I'm using Node JS</p>
  
  <pre><code>  client.search({
      index: "yojuego",
      type: "user",
      query: {
        "filtered": {
          "filter": {
            "bool": {
              "must": [
                { "term": { "userid": "123456789" } },
                { "term": { "type": "yojuego" } }
              ]
            }
          }
        }
      }
    }, (error, response, status) =&gt; {
      if (error) {
        res.json(400, err);
      }
      else {
        res.json(200, response.hits.hits);
      }
    });
  });
  </code></pre>