title: With Elasticsearch, how to use an OR instead of AND within filter->terms query?
body: <p>I have this following query with elastic:</p>
  <pre><code>{
      &quot;query&quot;: {
          &quot;bool&quot;: {
              &quot;filter&quot;: [{
                  &quot;terms&quot;: {
                      &quot;participants.group&quot;: [&quot;group1&quot;,&quot;group2&quot;]
                  }
              }, {
                  &quot;range&quot;: {
                      &quot;recordDate&quot;: {
                          &quot;gte&quot;: &quot;2020-05-14 00:00:00.000&quot;,
                          &quot;lte&quot;: &quot;2020-07-22 20:30:56.566&quot;
                      }
                  }
              }]
          }
      }
  }
  </code></pre>
  <p>Currently, this finds records with participants with group &quot;group1&quot; <strong>and</strong> &quot;group2&quot;.
  How to change the query so it finds records with participants from &quot;group1&quot; <strong>or</strong> &quot;group2?</p>
  <p>Is it possible to do it <strong>without</strong> changing the structure of the query?</p>