Skip to content

Commit b7c1f62

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 e885260 commit b7c1f62

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

docs/reference/search/request/scroll.asciidoc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,15 @@ 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 returned `_scroll_id` attribute can be passed in the request body or in the
67-
query string as `?scroll_id=....`
65+
<2> The returned `_scroll_id` attribute can be passed in the request body or in
66+
the query string as `?scroll_id=....`
6867

6968
Each call to the `scroll` API returns the next batch of results until there
7069
are no more results left to return, ie the `hits` array is empty.

0 commit comments

Comments
 (0)