title: Using match_all with filters
body: <p>I have a page which allows users to query datasets and apply filters. They can also apply filters without querying with a string. To do so I'm attempting to use match_all with filters but getting the following error</p>
  
  <blockquote>
    <p>"{"error":{"root_cause":[{"type":"parsing_exception","reason":"[match_all]
    malformed query, expected [END_OBJECT] but found
    [FIELD_NAME]","line":1,"col":26}],"type":"parsing_exception","reason":"[match_all]
    malformed query, expected [END_OBJECT] but found
    [FIELD_NAME]","line":1,"col":26},"status":400}",</p>
  </blockquote>
  
  <p>This is an example of the search parameters that I'm building and sending to the elastic client. </p>
  
  <pre><code>[
    "type" =&gt; "events"
    "index" =&gt; "events"
    "body" =&gt; [
      "query" =&gt; [
        "match_all" =&gt; {}
        "bool" =&gt; [
          "filter" =&gt; [
            "range" =&gt; [
              "start_date.date" =&gt; [
                "gte" =&gt; "01/05/2019"
                "lte" =&gt; "05/2019"
                "format" =&gt; "dd/MM/yyyy||MM/yyyy"
              ]
            ]
          ]
        ]
      ]
      "from" =&gt; 0
      "size" =&gt; 30
    ]
  ]
  </code></pre>
  
  <p>I can't seem to figure out how to use both of them. Any pointers? Thank you.</p>