You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename string_field script context to keyword_field (#71854)
Up until now, the name of the script contexts that runtime fields use was internal only. They recently got exposed through the painless execute API. This commit fixes the discrepancy between the field type used to define a runtime field of type keyword and the script context needed to simulate its corresponding script: string_field should be keyword_field.
Copy file name to clipboardExpand all lines: modules/lang-painless/src/main/resources/org/elasticsearch/painless/spi/org.elasticsearch.script.keyword_field.txt
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
# Side Public License, v 1.
7
7
#
8
8
9
-
# The whitelist for string-valued runtime fields
9
+
# The whitelist for keyword runtime fields
10
10
11
11
# These two whitelists are required for painless to find the classes
12
12
class org.elasticsearch.script.StringFieldScript @no_import {
Copy file name to clipboardExpand all lines: modules/lang-painless/src/yamlRestTest/resources/rest-api-spec/test/painless/70_execute_painless_scripts.yml
+4-12
Original file line number
Diff line number
Diff line change
@@ -265,36 +265,28 @@ setup:
265
265
- match: { result: [ -90, 0, 20, 20, 35 ] }
266
266
267
267
---
268
-
"Execute with string field context (single-value)":
269
-
- skip:
270
-
version: " - 8.99.99"
271
-
reason: Script while the script context gets renamed
272
-
268
+
"Execute with keyword field context (single-value)":
0 commit comments