Skip to content

Instantly share code, notes, and snippets.

@esamudio
Created January 16, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esamudio/d1a26002b1d1e5eea36e2f5c5bf9e169 to your computer and use it in GitHub Desktop.
Save esamudio/d1a26002b1d1e5eea36e2f5c5bf9e169 to your computer and use it in GitHub Desktop.
{
"error" : {
"root_cause" : [
{
"type" : "script_exception",
"reason" : "compile error",
"script_stack" : [
"doc[domain_name_length].value ...",
" ^---- HERE"
],
"script" : "doc[domain_name_length].value * 2",
"lang" : "painless"
}
],
"type" : "search_phase_execution_exception",
"reason" : "all shards failed",
"phase" : "query",
"grouped" : true,
"failed_shards" : [
{
"shard" : 0,
"index" : "dns2",
"node" : "l63dXeVTSeK1Xd18XxvrZQ",
"reason" : {
"type" : "script_exception",
"reason" : "compile error",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Variable [domain_name_length] is not defined."
},
"script_stack" : [
"doc[domain_name_length].value ...",
" ^---- HERE"
],
"script" : "doc[domain_name_length].value * 2",
"lang" : "painless"
}
}
],
"caused_by" : {
"type" : "script_exception",
"reason" : "compile error",
"caused_by" : {
"type" : "illegal_argument_exception",
"reason" : "Variable [domain_name_length] is not defined."
},
"script_stack" : [
"doc[domain_name_length].value ...",
" ^---- HERE"
],
"script" : "doc[domain_name_length].value * 2",
"lang" : "painless"
}
},
"status" : 500
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment