malformed query, expected END_OBJECT but found FIELD_NAME error in Kibana (Elastic Search) : <p>I am running the following GET query within my Kibana Console and for some reason I am getting a error in the response window as follows :</p>

<p>// error </p>

<pre><code>[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
</code></pre>

<p>Can anyone suggest why I am not able to use multiple match blocks within the 'should' section?</p>

<p>// response - if i take out one of the match blocks it works?? </p>

<pre><code>{
  "error": {
   "root_cause": [
     {
       "type": "parsing_exception",
       "reason": "[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
        "line": 9,
        "col": 13
     }
   ],
    "type": "parsing_exception",
    "reason": "[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
    "line": 9,
    "col": 13
   },
   "status": 400
}
</code></pre>

<p>// my query</p>

<pre><code>GET _search
  {
    "query": {
      "bool": {
        "should": [
        {
           "match": {
           "text": "facebook advice"
        },
           "match": {
           "profile": "facebook advice"
        }
      }
    ],
    "minimum_number_should_match": 1,
    "filter": {
      "term": {
        "accountid": "22"
      }
    }
  }
}
</code></pre>
