diff --git a/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml b/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml index b0d6f0fec30..742c8f0204d 100644 --- a/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml +++ b/plugins/lang-javascript/src/test/resources/rest-api-spec/test/lang_javascript/20_search.yaml @@ -58,8 +58,9 @@ script_fields: sNum1: - lang: js - script: "doc['num1'].value" + script: + inline: "doc['num1'].value" + lang: js sort: num1: order: asc