Skip to content

Instantly share code, notes, and snippets.

@rch
Created November 29, 2012 00:39
Show Gist options
  • Save rch/4165876 to your computer and use it in GitHub Desktop.
Save rch/4165876 to your computer and use it in GitHub Desktop.
Calling doc().score() in a native script causes a NullPointerException
{
"error" : "SearchPhaseExecutionException[Failed to execute phase [query_fetch], total failure; shardFailures {NullPointerException[null]}]",
"status" : 500
}
{
"fields" : ["user","message"],
"query" : {
"text" : { "message" : "elastic" }
},
"script_fields": {
"DynamicBoost": {
"script": "DynamicBoost",
"lang": "native",
"params": {
"field": "postDate"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment