Skip to content

Commit 60c54f8

Browse files
committed
Docs: Drop inline callout from scroll example (#38340)
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 597499a commit 60c54f8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/reference/search/request/scroll.asciidoc

+6-7
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,14 @@ results.
5555

5656
[source,js]
5757
--------------------------------------------------
58-
curl -XGET <1> 'localhost:9200/_search/scroll?scroll=1m' <2> <3> \
59-
-d 'c2Nhbjs2OzM0NDg1ODpzRlBLc0FXNlNyNm5JWUc1' <4>
58+
curl -XGET 'localhost:9200/_search/scroll?scroll=1m' \ <1>
59+
-d 'c2Nhbjs2OzM0NDg1ODpzRlBLc0FXNlNyNm5JWUc1' <2>
6060
--------------------------------------------------
61-
<1> `GET` or `POST` can be used.
62-
<2> The URL should not include the `index` or `type` name -- these
63-
are specified in the original `search` request instead.
64-
<3> The `scroll` parameter tells Elasticsearch to keep the search context open
61+
<1> `GET` or `POST` can be used and the URL should not include the `index`
62+
or `type` name -- this is specified in the original `search` request instead.
63+
The `scroll` parameter tells Elasticsearch to keep the search context open
6564
for another `1m`.
66-
<4> The `scroll_id` can be passed in the request body or in the
65+
<2> The `scroll_id` can be passed in the request body or in the
6766
query string as `?scroll_id=....`
6867

6968
Each call to the `scroll` API returns the next batch of results until there

0 commit comments

Comments
 (0)