Query with match by multiple fields
<p>I'm pretty new to elastic search and would like to write a query that is concerned about two fields. I mean the content of the fields contains the specified substring. I have a document containing fields, like this:</p>

<pre><code>name: n
tag: t
</code></pre>

<p>I tried this:</p>

<pre><code>/_search -d '
{
    "query": {
        "match": {
             "name": "n",
             "tag": "t"
        }
    }
}
</code></pre>

<p>But the query results in the following error:</p>

<blockquote>
  <p>[match] query parsed in simplified form, with direct field name, but
  included more options than just the field name, possibly use its
  'options' form, with 'query' element?</p>
</blockquote>

<p>Is there a way to do this in elasticsearch?</p>