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,

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": [
    "query": {
      "match": {
        "iid": "1234567"


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