Skip to content

Commit 0481f73

Browse files
committed
Docs: Drop inline callouts from the java API (#39932)
There is a single example in the Java API docs that contains an inline callout that is incompatible with Asciidoctor: ``` client.prepareUpdate("ttl", "doc", "1") .setScript(new Script( "ctx._source.gender = \"male\"" <1> , ScriptService.ScriptType.INLINE, null, null)) .get(); ``` This rewrites the example to use an Asciidoctor compatible end of line callout. It also looks nicer to me because it fits better on the page. ``` client.prepareUpdate("ttl", "doc", "1") .setScript(new Script( "ctx._source.gender = \"male\"", <1> ScriptService.ScriptType.INLINE, null, null)) .get(); ```
1 parent 0986d38 commit 0481f73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/java-api/docs/update.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ Or you can use `prepareUpdate()` method:
2222
[source,java]
2323
--------------------------------------------------
2424
client.prepareUpdate("ttl", "doc", "1")
25-
.setScript(new Script("ctx._source.gender = \"male\"" <1> , ScriptService.ScriptType.INLINE, null, null))
25+
.setScript(new Script(
26+
"ctx._source.gender = \"male\"", <1>
27+
ScriptService.ScriptType.INLINE, null, null))
2628
.get();
2729
2830
client.prepareUpdate("ttl", "doc", "1")

0 commit comments

Comments
 (0)