def script_score(script, options = {})
      scoring = {script_score: {script: script}.merge(options)}
      chain { criteria.update_scores scoring }
    end
def script_score(script, options = {})
      scoring = {script_score: {script: script}.merge(options)}
      chain { criteria.update_scores scoring }
    end
Adds a script function to score the search request. All scores are
 added to the search request and combinded according to
 `boost_mode` and `score_mode`

 @example
   UsersIndex.script_score("doc['boost'].value", params: { modifier: 2 })
       # => {body:
              query: {
                function_score: {
                  query: { ...},
                  functions: [{
                    script_score: {
                       script: "doc['boost'].value * modifier",
                       params: { modifier: 2 }
                     }
                    }
                  }]
                } } }