@@ -40,17 +40,17 @@ be passed to the `id` of the `pit` parameter of a search request.
40
40
41
41
[source,console]
42
42
--------------------------------------------------
43
- POST /_search <1>
43
+ POST /_search <1>
44
44
{
45
- "size": 100,
45
+ "size": 100, <2>
46
46
"query": {
47
47
"match" : {
48
48
"title" : "elasticsearch"
49
49
}
50
50
},
51
51
"pit": {
52
- "id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", <2 >
53
- "keep_alive": "1m" <3 >
52
+ "id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", <3 >
53
+ "keep_alive": "1m" <4 >
54
54
}
55
55
}
56
56
--------------------------------------------------
@@ -59,9 +59,12 @@ POST /_search <1>
59
59
<1> A search request with the `pit` parameter must not specify `index`, `routing`,
60
60
and {ref}/search-request-body.html#request-body-search-preference[`preference`]
61
61
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
63
66
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
65
68
the time to live of the point in time.
66
69
67
70
IMPORTANT: The open point in time request and each subsequent search request can
0 commit comments