title: how to query with python elasticseach module over multiple indexes?
body: <p>just for testing, I have a single elasticsearch node containing indexes like:</p>
  <p>service-log-17032020
  service-log-20032020
  service-log-21032020</p>
  <p>I am trying to build a query for searching on all indexes with service-log-* pattern. This query works perfectly with the full index name, how can I search on all indexes?</p>
  <pre><code>index = INDEX_NAME
  query_body = {
              &quot;from&quot;:0,
              &quot;size&quot;:100,
              &quot;query&quot;: {  
                &quot;bool&quot;: {
                  &quot;must&quot;: [
                    {
                      &quot;match&quot; : {
                        &quot;field&quot;: &quot;text&quot;
                      }
                    },
                    {                       
                      &quot;range&quot;: {
                        &quot;@timestamp&quot;: {
                          &quot;gt&quot;:str(date)
                        }
                      }
                    }
                  ]
                }               
              }
          }
  
  result = elastic_client.search(index=INDEX_NAME, body=query_body)
  </code></pre>