Skip to content

Commit 173db6d

Browse files
[DOCS] Mention search_after in PIT docs (#93627) (#93687)
1 parent 081a8bb commit 173db6d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/reference/search/point-in-time-api.asciidoc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ be passed to the `id` of the `pit` parameter of a search request.
4040

4141
[source,console]
4242
--------------------------------------------------
43-
POST /_search <1>
43+
POST /_search <1>
4444
{
45-
"size": 100,
45+
"size": 100, <2>
4646
"query": {
4747
"match" : {
4848
"title" : "elasticsearch"
4949
}
5050
},
5151
"pit": {
52-
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", <2>
53-
"keep_alive": "1m" <3>
52+
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", <3>
53+
"keep_alive": "1m" <4>
5454
}
5555
}
5656
--------------------------------------------------
@@ -59,9 +59,12 @@ POST /_search <1>
5959
<1> A search request with the `pit` parameter must not specify `index`, `routing`,
6060
and {ref}/search-request-body.html#request-body-search-preference[`preference`]
6161
as these parameters are copied from the point in time.
62-
<2> The `id` parameter tells Elasticsearch to execute the request using contexts
62+
<2> Just like regular searches, you can <<paginate-search-results,use `from` and
63+
`size` to page through search results>>, up to the first 10,000 hits. If you
64+
want to retrieve more hits, use PIT with <<search-after,`search_after`>>.
65+
<3> The `id` parameter tells Elasticsearch to execute the request using contexts
6366
from this point in time.
64-
<3> The `keep_alive` parameter tells Elasticsearch how long it should extend
67+
<4> The `keep_alive` parameter tells Elasticsearch how long it should extend
6568
the time to live of the point in time.
6669

6770
IMPORTANT: The open point in time request and each subsequent search request can

0 commit comments

Comments
 (0)