title: Elasticsearch AND Query
body: <p>I'm trying to do something like this:</p>
  
  <pre><code>SELECT * FROM x WHERE __account_id = 5 AND __import_id IN [1,2,3]
  </code></pre>
  
  <p>Here is my ES query:</p>
  
  <pre><code>body = {
      "query": {
          "filtered" : { 
              "filter" : {
                  "term" : { 
                      "__account_id" : account.id,
                      "__import_id": [x['id'] for x in ingested_imports]
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>Results seem to filter only on __account_id but not on __import_id. What am I doing wrong?</p>