Skip to content

Commit 0eca5aa

Browse files
committed
[DOCS] Replaces deprecated ScriptService.ScriptType.INLINE with supported script in Java update docs. (#49424)
1 parent 837a684 commit 0eca5aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java-api/docs/update.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or you can use `prepareUpdate()` method:
2424
client.prepareUpdate("ttl", "doc", "1")
2525
.setScript(new Script(
2626
"ctx._source.gender = \"male\"", <1>
27-
ScriptService.ScriptType.INLINE, null, null))
27+
ScriptType.INLINE, null, null))
2828
.get();
2929
3030
client.prepareUpdate("ttl", "doc", "1")
@@ -35,7 +35,7 @@ client.prepareUpdate("ttl", "doc", "1")
3535
.get();
3636
--------------------------------------------------
3737
<1> Your script. It could also be a locally stored script name.
38-
In that case, you'll need to use `ScriptService.ScriptType.FILE`
38+
In that case, you'll need to use `ScriptType.FILE`.
3939
<2> Document which will be merged to the existing one.
4040

4141
Note that you can't provide both `script` and `doc`.

0 commit comments

Comments
 (0)