Skip to content

Commit b002ef7

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 ba398c2 commit b002ef7

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docs/reference/search/request/scroll.asciidoc

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,20 @@ results.
5555

5656
[source,js]
5757
--------------------------------------------------
58-
curl -XGET <1> 'localhost:9200/_search/scroll' <2> -d'
58+
curl -XGET 'localhost:9200/_search/scroll' -d' <1>
5959
{
60-
"scroll" : "1m", <3>
61-
"scroll_id" : "c2Nhbjs2OzM0NDg1ODpzRlBLc0FXNlNyNm5JWUc1" <4>
60+
"scroll" : "1m", <2>
61+
"scroll_id" : "c2Nhbjs2OzM0NDg1ODpzRlBLc0FXNlNyNm5JWUc1" <3>
6262
}
6363
'
6464
--------------------------------------------------
65-
6665
added[2.0.0-beta1, body based parameters were added in 2.0.0]
6766

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

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

0 commit comments

Comments
 (0)