# Getting Failed to execute phase \[query\], all shards failed Exception

**URL:** <https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111>\
**Category:** Elasticsearch\
**Created:** [September 20, 2017, 6:42am UTC](https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111 "2017-09-20T06:42:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moumita\_Mandal](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Moumita\_Mandal](https://discuss.elastic.co/u/Moumita_Mandal)\
**Post date:** [September 20, 2017, 6:42am UTC](https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111/1 "2017-09-20T06:42:15Z")

</div>

Hello,

I am getting an error like below:

{"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[b4bIF3bMQXiYSHKa4uNW2g][userquestionsess][0]: SearchParseException[[userquestionsess][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"bool":{"must":{"match":{"userEmail":"admin@admin.com"}},"filter":{"bool":{"must":[{"term":{"questionText":"5\*2"}}]}}}},"size":10,"from":0}]]]; nested: QueryParsingException[[userquestionsess] [bool] query does not support [filter]]; }]","status":400}

Help me to understand and find out a solution to this error.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [September 21, 2017, 4:37pm UTC](https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111/2 "2017-09-21T16:37:43Z")

</div>

Is this from some Elasticsearch version 1.x?

---

<div class="post-metadata">

**Author:** ![Moumita\_Mandal](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Moumita\_Mandal](https://discuss.elastic.co/u/Moumita_Mandal)\
**Post date:** [September 22, 2017, 5:20am UTC](https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111/3 "2017-09-22T05:20:24Z")

</div>

Hi Thiago,

Thank you for your reply.

Yeah, I was using Elasticsearch version "1.7.2". I figured out the problem and changed the version to "5.3.2". Now it is working fine.

---

<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:** [October 20, 2017, 5:20am UTC](https://discuss.elastic.co/t/getting-failed-to-execute-phase-query-all-shards-failed-exception/101111/4 "2017-10-20T05:20:47Z")

</div>

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