From 56d97dcb6cc0fec4ed12ad93070957d015af9ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 22 Nov 2019 14:17:44 +0100 Subject: [PATCH] [DOCS] Replaces deprecated ScriptService.ScriptType.INLINE with supported script in Java update docs. (#49424) --- docs/java-api/docs/update.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/java-api/docs/update.asciidoc b/docs/java-api/docs/update.asciidoc index e4cbafbfb21..4134aa7db83 100644 --- a/docs/java-api/docs/update.asciidoc +++ b/docs/java-api/docs/update.asciidoc @@ -24,7 +24,7 @@ Or you can use `prepareUpdate()` method: client.prepareUpdate("ttl", "doc", "1") .setScript(new Script( "ctx._source.gender = \"male\"", <1> - ScriptService.ScriptType.INLINE, null, null)) + ScriptType.INLINE, null, null)) .get(); client.prepareUpdate("ttl", "doc", "1") @@ -35,7 +35,7 @@ client.prepareUpdate("ttl", "doc", "1") .get(); -------------------------------------------------- <1> Your script. It could also be a locally stored script name. -In that case, you'll need to use `ScriptService.ScriptType.FILE` +In that case, you'll need to use `ScriptType.FILE`. <2> Document which will be merged to the existing one. Note that you can't provide both `script` and `doc`.