Skip to content

Commit 030bcab

Browse files
authored
Docs: Drop inline callout from scroll example (#38340) (#38806)
Coalesces two calls into one in a scroll example so all callouts are at the end of the line. This is the only sort of callouts that are supported by asciidoctor and we'd like to start building our docs with asciidoctor. At present we don't have any mechanism to stop folks adding more inline callouts but we ought to be able to have one in a few weeks. For now, though, removing these inline callouts is a step in the right direction. Relates to #38335
1 parent 728013a commit 030bcab

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/reference/search/request/scroll.asciidoc

+7-8
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,20 @@ results.
5757

5858
[source,js]
5959
--------------------------------------------------
60-
POST <1> /_search/scroll <2>
60+
POST /_search/scroll <1>
6161
{
62-
"scroll" : "1m", <3>
63-
"scroll_id" : "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==" <4>
62+
"scroll" : "1m", <2>
63+
"scroll_id" : "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==" <3>
6464
}
6565
--------------------------------------------------
6666
// CONSOLE
6767
// TEST[continued s/DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==/$body._scroll_id/]
6868

69-
<1> `GET` or `POST` can be used.
70-
<2> The URL should not include the `index` or `type` name -- these
71-
are specified in the original `search` request instead.
72-
<3> The `scroll` parameter tells Elasticsearch to keep the search context open
69+
<1> `GET` or `POST` can be used and the URL should not include the `index`
70+
or `type` name -- this is specified in the original `search` request instead.
71+
<2> The `scroll` parameter tells Elasticsearch to keep the search context open
7372
for another `1m`.
74-
<4> The `scroll_id` parameter
73+
<3> The `scroll_id` parameter
7574

7675
The `size` parameter allows you to configure the maximum number of hits to be
7776
returned with each batch of results. Each call to the `scroll` API returns the

0 commit comments

Comments
 (0)