elasticsearch/elasticsearch — pull request #6898 by rjernst (2014-07-16 23:20:37+00:00)
Title: Scripts: Make ScoreAccessor utility class plublicly available for other script engines

With the removal of setNextScore in #6864, script engines must use
the Scorer to find the score of a document. The DocLookup is updated
appropriately to do this, but most script engines require a Number to be
bound for numeric variables. Groovy already had an encapsulation for
this funtionality, and this moves it out to be shared with other script
engines.