# Elastic\[5.x\] Is it possible to validate the query having filters on meta data

**URL:** <https://discuss.elastic.co/t/elastic-5-x-is-it-possible-to-validate-the-query-having-filters-on-meta-data/147337>\
**Category:** Elasticsearch\
**Created:** [September 5, 2018, 8:23am UTC](https://discuss.elastic.co/t/elastic-5-x-is-it-possible-to-validate-the-query-having-filters-on-meta-data/147337 "2018-09-05T08:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinay\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay_kumar/32/35089_2.png) [@Vinay\_Kumar](https://discuss.elastic.co/u/Vinay_Kumar)\
**Post date:** [September 5, 2018, 8:23am UTC](https://discuss.elastic.co/t/elastic-5-x-is-it-possible-to-validate-the-query-having-filters-on-meta-data/147337/1 "2018-09-05T08:23:28Z")

</div>

Currently, I've been using the validate API of elasticsearch in order to validate my query.  
the URL that I am hitting is as follows:

`curl -X GET -H 'Content-Type: application/json' --data @query.json 'http://` `/_validate/query?explain=true`

the file `query.json` contains the following:  
`{ "query": { "match_all": {} }, "filter": [{ "meta": { "index": "Node-DEMO", "negate": false, "disabled": false, "alias": null, "type": "exists", "key": "node_stats.indices.docs.count", "value": "exists" }, "exists": { "field": "index_stats.total.query_cache.miss_count" } }] }`

**Error that I received:** org.elasticsearch.common.ParsingException: request does not support [filter]

Is it possible to validate this query?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 3, 2018, 8:23am UTC](https://discuss.elastic.co/t/elastic-5-x-is-it-possible-to-validate-the-query-having-filters-on-meta-data/147337/2 "2018-10-03T08:23:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
