title: Elasticsearch 7 x_content_parse_exception failed to parse field [must]
body: <p>My Query which returns the error: elasticsearch.exceptions.RequestError: RequestError(400, 'x_content_parse_exception', '[8:43] [bool] failed to parse field [must]')</p>
  <p>I have tried replacing the [] with {} but that hasen't helped</p>
  <pre><code>    chunksize, chunk, double_chunk = ssdeep_value.split(&quot;:&quot;)
      chunksize = int(chunksize)
      twice_chunksize = chunksize*2
      half_chunksize = chunksize*0.5
  
      query = &quot;&quot;&quot;
      {
          &quot;query&quot;: {
              &quot;bool&quot;: {
                  &quot;must&quot;: [
                      {
                          &quot;terms&quot;: {
                              &quot;chunksize&quot;: [chunksize, twice_chunksize, half_chunksize]
                          }
                      },
                      {
                          &quot;bool&quot;: {
                              &quot;should&quot;: [
                                  {
                                      &quot;match&quot;: {
                                          &quot;chunk&quot;: {
                                              &quot;query&quot;: chunk,
                                          }
                                      }
                                  },
                                  {
                                      &quot;match&quot;: {
                                          &quot;double_chunk&quot;: {
                                              &quot;query&quot;: double_chunk,
                                          }
                                      }
                                  }
                              ],
                              &quot;minimum_should_match&quot;: 1
                          }
                      }
                  ]
              }
          }
      }
      &quot;&quot;&quot;
  
      results = es.search(index=&quot;ssdeep-index&quot;, body=query)
  </code></pre>