Skip to content

The ignore_unavailable=true parameter seems to be ignored in REST #6471

@karmi

Description

@karmi

When trying to search against a closed index via curl with the ignore_unavailable parameter, an error response is returned:

curl -X DELETE 'http://localhost:9200/index_1?pretty'

#2014-06-11T21:20:10+02:00 [200] (0.107s)
#
# {
#   "acknowledged":true
# }

curl -X DELETE 'http://localhost:9200/index_2?pretty'

#2014-06-11T21:20:12+02:00 [200] (0.022s)
#
# {
#   "acknowledged":true
# }

curl -X PUT 'http://localhost:9200/index_1?pretty'

#2014-06-11T21:20:25+02:00 [200] (0.218s)
#
# {
#   "acknowledged":true
# }

curl -X PUT 'http://localhost:9200/index_2?pretty'

#2014-06-11T21:20:29+02:00 [200] (0.112s)
#
# {
#   "acknowledged":true
# }

curl -X POST 'http://localhost:9200/index_2/_close?pretty'

#2014-06-11T21:20:37+02:00 [200] (0.024s)
#
# {
#   "acknowledged":true
# }

curl -X GET 'http://localhost:9200/index_1,index_2/_search?pretty&ignore_unavailable=true'

#2014-06-11T21:20:57+02:00 [403] (0.005s)
#
# {"error":"ClusterBlockException[blocked by: [FORBIDDEN/4/index closed];]","status":403}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions