no [query] registered for [filtered] : <p>I have a query which I need to filter out results.</p>

<p>This is my query</p>

<pre><code>{
    "query": {
        "filtered": {
            "query": {
                "multi_match": {
                    "default_operator": "AND",
                    "fields": [
                        "author",
                        "title",
                        "publisher",
                        "year"
                    ],
                    "query": "George Orwell"
                }
            },
            "filter": {
                "terms": {
                    "year": [
                        1980,
                        1981
                    ]
                }
            }
        }
    }
}
</code></pre>

<p>I get an error saying <code>no [query] registered for [filtered]</code>. I clearly have a query for the filtered field. I am following the format given in the filtered query documentation on the elasticsearch page.
<a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html">https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html</a></p>
