Skip to content

_msearch API does not accept ignore_throttled parameter at request level #35851

@cdahlqvist

Description

@cdahlqvist

Elasticsearch version:

{ "name" : "ip-10-0-0-182", "cluster_name" : "elasticsearch", "cluster_uuid" : "sz3VeuOEQouswel_tRPkgQ", "version" : { "number" : "7.0.0", "build_flavor" : "default", "build_type" : "tar", "build_hash" : "e8ec4fa", "build_date" : "2018-11-21T08:59:17.003329Z", "build_snapshot" : true, "qualified" : "7.0.0-SNAPSHOT", "lucene_version" : "8.0.0", "minimum_wire_compatibility_version" : "6.6.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } 

Plugins installed: None

JVM version (java -version):

openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1ubuntu0.18.04.1-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) 

OS version (uname -a if on a Unix-like system):
Linux ip-10-0-0-182 4.15.0-1021-aws #21-Ubuntu SMP Tue Aug 28 10:23:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:

When using the _msearch API to query frozen indices, the API does not accept the ignore_throttled query parameter at the request level, so it is therefore necessary to set this for each individual query in the request.

Steps to reproduce:

Run this query:

curl -X GET "localhost:9200/*/_msearch?ignore_throttled=false&pre_filter_shard_size=1" -H 'Content-Type: application/json' -d' {} {"query" : {"match_all" : {}}} ' 

This gives the following response:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/*/_msearch] contains unrecognized parameter: [ignore_throttled]"}],"type":"illegal_argument_exception","reason":"request [/*/_msearch] contains unrecognized parameter: [ignore_throttled]"},"status":400} 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions