diff --git a/server/src/main/java/org/opensearch/script/DerivedFieldScript.java b/server/src/main/java/org/opensearch/script/DerivedFieldScript.java index 1bbf5d6c9d1ae..00090cb03b94b 100644 --- a/server/src/main/java/org/opensearch/script/DerivedFieldScript.java +++ b/server/src/main/java/org/opensearch/script/DerivedFieldScript.java @@ -57,7 +57,7 @@ public abstract class DerivedFieldScript { private static final Map> PARAMS_FUNCTIONS = Map.of("doc", value -> value, "_doc", value -> { deprecationLogger.deprecate( "derived-field__doc", - "Accessing variable [doc] via [params._doc] from within an terms-set-query-script " + "Accessing variable [doc] via [params._doc] from within an derived-field-script-context " + "is deprecated in favor of directly accessing [doc]." ); return value;