Skip to content

Commit

Permalink
[DOCS] Fixes a syntax error in datafeed runtime field example. (#76917)…
Browse files Browse the repository at this point in the history
… (#76919)
  • Loading branch information
szabosteve authored Aug 25, 2021
1 parent 41f6c53 commit 8ad404a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ POST _ml/datafeeds/datafeed-test2/_update
"my_runtime_field": {
"type": "keyword",
"script": {
"source": "emit(def m = /(.*)-bar-([0-9][0-9])/.matcher(doc['tokenstring3'].value); return m.find() ? m.group(1) + '_' + m.group(2) : '';)" <1>
"source": "def m = /(.*)-bar-([0-9][0-9])/.matcher(doc['tokenstring3'].value); emit(m.find() ? m.group(1) + '_' + m.group(2) : '');" <1>
}
}
}
Expand Down

0 comments on commit 8ad404a

Please sign in to comment.