# The search API is expecting the max\_concurrent\_shard\_requests parameter

**URL:** <https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 12, 2019, 4:39pm UTC](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675 "2019-04-12T16:39:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylerssn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylerssn/32/44053_2.png) [@tylerssn](https://discuss.elastic.co/u/tylerssn)\
**Post date:** [April 12, 2019, 4:39pm UTC](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675/1 "2019-04-12T16:39:07Z")

</div>

I'm using the `bitnami/elasticsearch:6.5.15` image and connecting to it via the Magento 2 framework. When making a search request I am presented with the error:

> maxConcurrentShardRequests must be \>= 1

I have a single Elasticsearch docker container running and my understanding is that I could just add the param max\_concurrent\_shard\_request=1, but, my understanding is that Elastic Search sets a default value. Is that not true? If not, can I set a default value?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 12, 2019, 5:36pm UTC](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675/2 "2019-04-12T17:36:45Z")

</div>

First, I do not know, if that non-official docker image is doing anything special, that might be something to ask the bitnami folks.

Second, I do however think that the name issue seems to be something in your stack setting that shard size to a value smaller than 1 (this is what the code is checking for when that exception is thrown).

Maybe there is a piece of code overwriting your configuration after you set it?

--Alex

---

<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:** [May 10, 2019, 5:36pm UTC](https://discuss.elastic.co/t/the-search-api-is-expecting-the-max-concurrent-shard-requests-parameter/176675/3 "2019-05-10T17:36:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
