Indices Query : throws parse exception


(Shiv Naidu) #1

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, 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}


(Shiv Naidu) #2

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


(Mark Walkom) #3

Doesn't matter, we all make mistakes!


(system) #4