Hello,
I am using elasticsearch version 7.3.1, on my local setup search query execution works fine.
But the same query using docker image for es version 7.3.1 on kubernetes recently I am facing following exception:
"message": "All shards failed for phase: [query]" ,
stacktrace": ["org.elasticsearch.index.query.QueryShardException: failed to create query: {",
"bool" : {",
"must" : [",
{",
"term" : {",
"username" : {",
"value" : "12345",",
"boost" : 1.0",
}",
}",
},",
{",
"nested" : {",
"query" : {",
"exists" : {",
"field" : "email_addresses.value",",
"boost" : 1.0",
}",
},",
"path" : "email_addresses",",
"ignore_unmapped" : false,",
"score_mode" : "avg",",
"boost" : 1.0",
}",
}",
],",
"should" : [",
{",
"nested" : {",
"query" : {",
"multi_match" : {",
"query" : "abc",",
"fields" : [",
"email_addresses.value^3.0",",
"family_name^1.0",",
"given_name^2.0"",
],",
"type" : "bool_prefix",",
"operator" : "OR",",
"slop" : 0,",
"prefix_length" : 0,",
"max_expansions" : 50,",
"zero_terms_query" : "NONE",",
"auto_generate_synonyms_phrase_query" : true,",
"fuzzy_transpositions" : true,",
"boost" : 1.0",
}",
},",
"path" : "email_addresses",",
"ignore_unmapped" : false,",
"score_mode" : "avg",",
"boost" : 1.0",
}", },",
{",
"multi_match" : {",
"query" : "abc",",
"fields" : [",
"email_addresses.value^3.0",",
"family_name^1.0",",
"given_name^2.0"",
],",
"type" : "bool_prefix",",
"operator" : "OR",",
"slop" : 0,",
"prefix_length" : 0,",
"max_expansions" : 50,",
"zero_terms_query" : "NONE",",
"auto_generate_synonyms_phrase_query" : true,",
"fuzzy_transpositions" : true,",
"boost" : 1.0",
}",
}",
],",
"adjust_pure_negative" : true,",
"minimum_should_match" : "1",",
"boost" : 1.0",
}",
}",
"Caused by: java.lang.IllegalStateException: [nested] nested object under path [email_addresses] is not of nested type",
Please help