# Indices Query : throws parse exception

**URL:** <https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459>\
**Category:** Elasticsearch\
**Created:** [March 4, 2016, 12:16am UTC](https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459 "2016-03-04T00:16:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiv\_Naidu](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shiv\_Naidu](https://discuss.elastic.co/u/Shiv_Naidu)\
**Post date:** [March 4, 2016, 12:16am UTC](https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459/1 "2016-03-04T00:16:27Z")

</div>

I am trying to query across indexes and filter for one index. But for a start I thought first I will try default indices query they have mentioned in the doc portal, [Indices Query | Elasticsearch Guide [2.0] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/query-dsl-indices-query.html)

I get a parse exception while executing this query, it looks like there is no handler for this query type. Please help,

> ```
> GET /_search
> {
> "indices": {
> "indices": [
> "shivtestindex2",
> "shivtestindex2events"
> ],
> "query": {
> "match": {
> "iid": "1234567"
> }
> }
> }
> }
> 
> ```

Error:

Parse Failure [No parser for element [indices]]]; }]","status":400}

---

<div class="post-metadata">

**Author:** ![Shiv\_Naidu](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shiv\_Naidu](https://discuss.elastic.co/u/Shiv_Naidu)\
**Post date:** [March 4, 2016, 12:40am UTC](https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459/2 "2016-03-04T00:40:26Z")

</div>

Nevermind... I feel really stupid... forgot to start with query block... sorry for the post...😞

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 4, 2016, 1:24am UTC](https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459/3 "2016-03-04T01:24:47Z")

</div>

Doesn't matter, we all make mistakes!

---

<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:** [July 5, 2017, 11:11pm UTC](https://discuss.elastic.co/t/indices-query-throws-parse-exception/43459/4 "2017-07-05T23:11:24Z")

</div>


