Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Maurya <[email protected]>
  • Loading branch information
rishabhmaurya committed Mar 21, 2024
1 parent 3102978 commit f71522a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public abstract class DerivedFieldScript {
private static final Map<String, Function<Object, Object>> PARAMS_FUNCTIONS = Map.of("doc", value -> value, "_doc", value -> {
deprecationLogger.deprecate(

Check warning on line 58 in server/src/main/java/org/opensearch/script/DerivedFieldScript.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/script/DerivedFieldScript.java#L58

Added line #L58 was not covered by tests
"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;
Expand Down

0 comments on commit f71522a

Please sign in to comment.