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

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.

Is this from some Elasticsearch version 1.x?

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.

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