anchor.diff:  {
     "script": {
       "lang": "painless",
  -    "source": "ctx._source.last = ctx._source.last.replaceFirst(/[aeiou]/, m -> m.group().toUpperCase(Locale.ROOT))"
  +    "inline": "ctx._source.last = ctx._source.last.replaceFirst(/[aeiou]/, m -> m.group().toUpperCase(Locale.ROOT))"
     }
   }
   ----------------------------------------------------------------
  
positive.code: {
    "script": {
      "lang": "painless",
      "source": "ctx._source.last = params.last; ctx._source.nick = params.nick",
      "params": {
        "last": "gaudreau",
        "nick": "hockey"
  
negative.code: {
    "script": {
      "lang": "painless",
      "inline": "if (ctx._source.last =~ /b/) {ctx._source.last += \"matched\"} else {ctx.op = 'noop'}"
    }
  }
  ----------------------------------------------------------------
  