anchor.diff:  <1> New line characters (`\n`) should be escaped as `\\n` or removed,
       and quotes (`"`) should be escaped as `\\"`.
   
  +==== Stored templates
  +
   You can register a template by storing it in the `config/scripts` directory, in a file using the `.mustache` extension.
  -In order to execute the stored template, reference it by name in the `query`
  +In order to execute the stored template, reference it by name in the `file`
   parameter:
   
   
  
positive.code: {
      "query": {
          "template": {
              "query": "{\"match_{{template}}\": {}}\"", <1>
              "params" : {
                  "template" : "all"
              }
          }
      }
  
negative.code: {
      "query": {
          "template": {
              "file": "my_template", <1>
              "params" : {
                  "query_string" : "all about search"
              }
          }
      }
  }
  ------------------------------------------
  <1> Name of the the query template in `config/scripts/`, i.e., `my_template.mustache`.
  
  Alternatively, you can register a query template in the special `.scripts` index with:
  
  [source,js]
  ------------------------------------------
  PUT /_search/template/my_template
  {
      "template": { "match": { "text": "{query_string}" }}},
  }
  ------------------------------------------
  
  and refer to it in the `template` query with the `id` parameter:
  
  
  [source,js]
  