anchor.diff:  
   [source,js]
   --------------------------------------------------
  -"DECAY_FUNCTION": {
  +"gauss": { <1>
       "price": {
             "origin": "0",
             "scale": "20"
       }
   }
   --------------------------------------------------
  +<1> The decay function could also be `linear` or `exp`.
   
   and for `location`:
   
   [source,js]
   --------------------------------------------------
   
  -"DECAY_FUNCTION": {
  +"gauss": { <1>
       "location": {
             "origin": "11, 12",
             "scale": "2km"
       }
   }
   --------------------------------------------------
  -
  -where `DECAY_FUNCTION` can be "linear", "exp" and "gauss".
  +<1> The decay function could also be `linear` or `exp`.
  +
   
   Suppose you want to multiply these two functions on the original score,
   the request would look like this:
   
   [source,js]
   --------------------------------------------------
  -curl 'localhost:9200/hotels/_search/' -d '{
  -"query": {
  +GET /hotels/_search/
  +{
  +  "query": {
       "function_score": {
  -        "functions": [
  -            {
  -                "DECAY_FUNCTION": {
  -                    "price": {
  -                        "origin": "0",
  -                        "scale": "20"
  -                    }
  -                }
  -            },
  -            {
  -                "DECAY_FUNCTION": {
  -                    "location": {
  -                        "origin": "11, 12",
  -                        "scale": "2km"
  -                    }
  -                }
  +      "functions": [
  +        {
  +          "gauss": {
  +            "price": {
  +              "origin": "0",
  +              "scale": "20"
               }
  -        ],
  -        "query": {
  -            "match": {
  -                "properties": "balcony"
  +          }
  +        },
  +        {
  +          "gauss": {
  +            "location": {
  +              "origin": "11, 12",
  +              "scale": "2km"
               }
  -        },
  -        "score_mode": "multiply"
  +          }
  +        }
  +      ],
  +      "query": {
  +        "match": {
  +          "properties": "balcony"
  +        }
  +      },
  +      "score_mode": "multiply"
       }
  -}
  -}'
  ---------------------------------------------------
  +  }
  +}
  +--------------------------------------------------
  +// AUTOSENSE
   
   Next, we show how the computed score looks like for each of the three
   possible decay functions.
   
  +[[gauss-decay]]
   ===== Normal decay, keyword `gauss`
   
   When choosing `gauss` as the decay function in the above example, the
  
positive.code:     "functions": [
          {
              "filter": {},
              "FUNCTION": {},
              "weight": number
          },
          {
              "FUNCTION": {}
          },
          {
              "filter": {},
  
negative.code: 
  There are a number of options for the `field_value_factor` function:
  
  [horizontal]
  `field`::
  
      Field to be extracted from the document.
  
  `factor`::
  
      Optional factor to multiply the field value with, defaults to `1`.
  
  `modifier`::
  
      Modifier to apply to the field value, can be one of: `none`, `log`,
      `log1p`, `log2p`, `ln`, `ln1p`, `ln2p`, `square`, `sqrt`, or `reciprocal`.
      Defaults to `none`.
  
  `missing`::
  
      Value used if the document doesn't have that field. The modifier
      and factor are still applied to it as though it were read from the document.
  
  
  Keep in mind that taking the log() of 0, or the square root of a negative number
  is an illegal operation, and an exception will be thrown. Be sure to limit the
  values of the field with a range filter to avoid this, or use `log1p` and
  `ln1p`.
  
  [[function-decay]]
  ==== Decay functions
  
  Decay functions score a document with a function that decays depending
  on the distance of a numeric field value of the document from a user
  