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

(Moumita Mandal) #1


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":""}},"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.

(Thiago Souza) #2

Is this from some Elasticsearch version 1.x?

(Moumita Mandal) #3

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.

(system) #4

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