anchor.diff:    }
   }
   ----
  +// TEST[setup:my_index]
   // TEST[continued]
   <1> `id` of the stored script
   
  -To delete a stored script, submit a delete request to the `_scripts` endpoint
  -and specify the stored script `id`:
  +To delete a stored script, submit a <<delete-stored-script-api,delete stored
  +script API>> request.
   
   [source,console]
   ----
  
positive.code:     "source": "Math.log(_score * 2) + params['my_modifier']"
    }
  }
  -----------------------------------
  // TEST[setup:my_index]
  
  You can retrieve that script by using the `_scripts` endpoint:
  
  [source,console]
  -----------------------------------
  GET _scripts/calculate-score
  -----------------------------------
  // TEST[continued]
  
  To use the stored script in a query, include the script `id` in the `script`
  
negative.code: [discrete]
  [[script-stored-scripts]]
  === Store and retrieve scripts
  You can store and retrieve scripts from the cluster state using the
  <<stored-script-apis,stored script APIs>>. Stored scripts reduce compilation
  time and make searches faster.
  
  NOTE: Unlike regular scripts, stored scripts require that you specify a script
  language using the `lang` parameter.
  
  To create a script, use the <<create-stored-script-api,create stored script
  API>>. For example, the following request creates a stored script named
  `calculate-score`.
  
  [source,console]
  ----
  POST _scripts/calculate-score
  {
    "script": {
  