# "all shards failed"

**URL:** <https://discuss.elastic.co/t/all-shards-failed/288230>\
**Category:** Elasticsearch\
**Created:** [November 2, 2021, 12:43pm UTC](https://discuss.elastic.co/t/all-shards-failed/288230 "2021-11-02T12:43:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmuzammil45](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mmuzammil45](https://discuss.elastic.co/u/mmuzammil45)\
**Post date:** [November 2, 2021, 12:43pm UTC](https://discuss.elastic.co/t/all-shards-failed/288230/1 "2021-11-02T12:43:05Z")

</div>

I am indexing nested JSON object. The issue is when the number of fields in the object approached to 1200, it started giving the error

**"all shards failed".**

I have tried multiple solutions but nothing has worked so far. I have also increased the heap size to 16gb but still the issue is there.

Suggest me how can I solve it?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 2, 2021, 9:11pm UTC](https://discuss.elastic.co/t/all-shards-failed/288230/2 "2021-11-02T21:11:31Z")

</div>

Please share the full error.  
Please also check your Elasticsearch logs for anything relevant.

---

<div class="post-metadata">

**Author:** ![mmuzammil45](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mmuzammil45](https://discuss.elastic.co/u/mmuzammil45)\
**Post date:** [November 3, 2021, 8:38am UTC](https://discuss.elastic.co/t/all-shards-failed/288230/3 "2021-11-03T08:38:32Z")

</div>

It says "type: query\_shard\_exception" & "reason: failed to create query: For input string "term" ".  
I'm using default configuration. 1 node & 1 shard.

I have also checked the Elasticsearch logs but nothing found there.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 3, 2021, 11:44pm UTC](https://discuss.elastic.co/t/all-shards-failed/288230/4 "2021-11-03T23:44:14Z")

</div>

You need to share the full error please.

---

<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:** [December 1, 2021, 11:44pm UTC](https://discuss.elastic.co/t/all-shards-failed/288230/5 "2021-12-01T23:44:39Z")

</div>

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