Skip to content

Commit 4624a9e

Browse files
authored
[DOCS] Fixes a syntax error in datafeed runtime field example. (#76917) (#76920)
1 parent d8040ea commit 4624a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/ml/anomaly-detection/ml-configuring-transform.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ POST _ml/datafeeds/datafeed-test2/_update
392392
"my_runtime_field": {
393393
"type": "keyword",
394394
"script": {
395-
"source": "emit(def m = /(.*)-bar-([0-9][0-9])/.matcher(doc['tokenstring3'].value); return m.find() ? m.group(1) + '_' + m.group(2) : '';)" <1>
395+
"source": "def m = /(.*)-bar-([0-9][0-9])/.matcher(doc['tokenstring3'].value); emit(m.find() ? m.group(1) + '_' + m.group(2) : '');" <1>
396396
}
397397
}
398398
}

0 commit comments

Comments
 (0)