anchor.diff:  
   
   [[decay-functions-numeric-fields]]
  -===== Decay functions for numeric fields
  +====== Decay functions for numeric fields
   You can read more about decay functions 
   {ref}/query-dsl-function-score-query.html#function-decay[here].
   
  
positive.code: <titleabbrev>Script score</titleabbrev>
  ++++
  
  The `script_score` allows you to modify the score of documents that are
  retrieved by a query. This can be useful if, for example, a score
  function is computationally expensive and it is sufficient to compute
  the score on a filtered set of documents.
  
  To use `script_score`, you have to define a query and a script -
  a function to be used to compute a new score for each document returned
  by the query. For more information on scripting see
  <<modules-scripting, scripting documentation>>.
  
  Here is an example of using `script_score` to assign each matched document
  a score equal to the number of likes divided by 10:
  
  [source,js]
  --------------------------------------------------
  
negative.code: }
  --------------------------------------------------
  // NOTCONSOLE
  
  Note that documents that are within the same shard and have the
  same value for field will get the same score, so it is usually desirable
  