title: Kibana am getting this, parsing_exception : [multi_match] unknown token [START_OBJECT] after [query] error
body: <p>Am trying to fetch records from elasticsearch via kibana using multi_match query but am getting error response.</p>
  
  <p>Please find my multi match query below. </p>
  
  <pre><code>GET /_search
  {
    "query": {
      "multi_match" : {
       "query": {
          "prefix" : { "code" : "M" }
      }
        "fields": [ "code", "_id" ] 
      }
    }
  }
  </code></pre>
  
  <p>Am getting the below error response.</p>
  
  <pre><code>{
    "error": {
      "root_cause": [
        {
          "type": "parsing_exception",
          "reason": "[multi_match] unknown token [START_OBJECT] after [query]",
          "line": 4,
          "col": 15
        }
      ],
      "type": "parsing_exception",
      "reason": "[multi_match] unknown token [START_OBJECT] after [query]",
      "line": 4,
      "col": 15
    },
    "status": 400
  }
  </code></pre>