anchor.diff:  [source,java]
   --------------------------------------------------
   sr = new SearchTemplateRequestBuilder(client)
  -        .setScript("{\n" +                                  <1>
  +        .setScript("{\n" +                   <1>
                   "        \"query\" : {\n" +
                   "            \"match\" : {\n" +
                   "                \"gender\" : \"{{param_gender}}\"\n" +
  
positive.code:                 "        }\n" +
                  "}")
          .setScriptType(ScriptType.INLINE)    <2>
          .setScriptParams(template_params)                  <3>
          .setRequest(new SearchRequest())                   <4>
          .get()                                             <5>
          .getResponse();                                    <6>
  --------------------------------------------------
  <1> template's body
  <2> template is passed inline
  
negative.code: [source,java]
  --------------------------------------------------
  SearchResponse sr = new SearchTemplateRequestBuilder(client)
          .setScript("template_gender")         <1>
          .setScriptType(ScriptType.STORED)     <2>
          .setScriptParams(template_params)     <3>
          .setRequest(new SearchRequest())      <4>
          .get()                                <5>
          .getResponse();                       <6>
  --------------------------------------------------
  <1> template name
  <2> template stored in the cluster state
  