title: How do I create an “In” Condition filter using elasticsearch-dsl-py?
body: <p>The query below is what I would like to construct using elasticsearch-dsl-py, but I do not know how to do it.</p>
  <pre><code>GET /my_index/_search
  {
    &quot;query&quot;: {
      &quot;filtered&quot;: {
        &quot;filter&quot;: {
          &quot;bool&quot;: {
            &quot;should&quot;: [
              {
                &quot;term&quot;: {
                  &quot;status&quot;: &quot;a&quot;
                },
                &quot;term&quot;: {
                  &quot;status&quot;: &quot;b&quot;
                },
                &quot;term&quot;: {
                  &quot;status&quot;: &quot;c&quot;
                }
              }
            ]
          }
        }
      }
    }
  }
  </code></pre>
  <p>I just want to execute a query like below in SQL format</p>
  <pre><code>select * from my_index where status in (&quot;a&quot;,&quot;b&quot;,&quot;c&quot;)
  </code></pre>
  <p>Using elasticsearch-dsl-py, this is as close as I can get, but it is not the same.</p>
  <pre><code>class MyIndex(Document):
  
      status = Keyword() / Text()
      
      
  
  MyIndex.search().filter('should', status=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;])
  </code></pre>