elasticsearch/elasticsearch — pull request #8750 by tlrx (2014-12-02 20:43:24+00:00)
Title: Scripting: Add explicit error message when script_score script returns N...

...aN

When a scoring script returns not a number, the current message is confusing (IllegalArgumentException[docID must be >= 0 and < maxDoc=3 (got docID=2147483647)]). This commit adds the error message ScriptException[script score function returns a wrong score: NaN].

Closes #2426