-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Point in Time documentation #1753
Conversation
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
}, | ||
"pit": { | ||
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", | ||
"keep_alive": "100m" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not mention the default keep-alive timeout and how we can extend the same ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comment above for extending keep alive via search api. right now keep alive is mandatory in create pit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
id | [Base64 encoded binary]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/binary) | The PIT ID. | ||
creation_time | long | The time the PIT was created in milliseconds since the epoch. | ||
|
||
## List all PITs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a snippet where user can extend keep alive using search API.
```json
GET /_search
{
"size": 10000,
"query": {
"match" : {
"user.id" : "elkbee"
}
},
"pit": {
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==",
"keep_alive": "100m" <--- //optional to extend a PIT's keep alive. The new expiry will be last accessed time + max of (request keep alive , current keep alive )
},
"sort": [
{"@timestamp": {"order": "asc", "format": "strict_date_optional_time_nanos"}},
{"_shard_doc": "desc"}
]
}
|
||
--- | ||
|
||
## Create a PIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add info about these cluster settings.
- We limit the maximum keep-alive of a PIT using a cluster level setting
point_in_time.max_keep_alive
(defaults to 24h . Users can change it as required.]) - We limit the number of open PIT contexts on each node using a node level setting
search.max_open_pit_context
(Defaults to 300.)
@@ -158,7 +158,10 @@ GET _nodes/stats/ | |||
"current" : 0 | |||
}, | |||
"search" : { | |||
"open_contexts" : 0, | |||
"pit_total" : 9, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets update these fields as follows :
- open_pit_contexts -> search.point_in_time_current
- pit_time_in_millis -> search.point_in_time_time
- pit_total -> search.point_in_time_total
@@ -648,6 +651,9 @@ get.<br> missing_total | Integer | The number of failed g | |||
get.<br> missing_time_in_millis | Integer | The total time for all failed get operations, in milliseconds. | |||
get.<br> current | Integer | The number of get operations that are currently running. | |||
search | Object | Statistics about the search operations for the node. | |||
search.<br> pit_total | Integer | The total number of Point in Time contexts that have been created (completed and active) since the node last restarted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets update these fields as follows :
open_pit_contexts -> search.point_in_time_current
pit_time_in_millis -> search.point_in_time_time
pit_total -> search.point_in_time_total
_opensearch/point-in-time-api.md
Outdated
|
||
```json | ||
{ | ||
"id": "o463QQEPbXktaW5kZXgtMDAwMDAxFnNOWU43ckt3U3IyaFVpbGE1UWEtMncAFjFyeXBsRGJmVFM2RTB6eVg1aVVqQncAAAAAAAAAAAIWcDVrM3ZIX0pRNS1XejE5YXRPRFhzUQEWc05ZTjdyS3dTcjJoVWlsYTVRYS0ydwAA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id -> pit_id
_opensearch/point-in-time-api.md
Outdated
|
||
Field | Data Type | Description | ||
:--- | :--- | :--- | ||
id | [Base64 encoded binary]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/binary) | The PIT ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id -> pit_id
_opensearch/point-in-time-api.md
Outdated
Introduced 2.4 | ||
{: .label .label-purple } | ||
|
||
Creates a PIT. The `keep_alive` query parameter specifies how long to keep this PIT and is required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a PIT. The required query parameter keep_alive
specifies how long to keep this PIT.
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
@@ -648,6 +651,9 @@ get.<br> missing_total | Integer | The number of failed g | |||
get.<br> missing_time_in_millis | Integer | The total time for all failed get operations, in milliseconds. | |||
get.<br> current | Integer | The number of get operations that are currently running. | |||
search | Object | Statistics about the search operations for the node. | |||
search.<br> search.point_in_time_total | Integer | The total number of Point in Time contexts that have been created (completed and active) since the node last restarted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use point_in_time_total
instead of search.point_in_time_total
@@ -648,6 +651,9 @@ get.<br> missing_total | Integer | The number of failed g | |||
get.<br> missing_time_in_millis | Integer | The total time for all failed get operations, in milliseconds. | |||
get.<br> current | Integer | The number of get operations that are currently running. | |||
search | Object | Statistics about the search operations for the node. | |||
search.<br> search.point_in_time_total | Integer | The total number of Point in Time contexts that have been created (completed and active) since the node last restarted. | |||
search.<br> search.point_in_time_time | Integer | The time that Point in Time contexts have been held open since the node last restarted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
@@ -648,6 +651,9 @@ get.<br> missing_total | Integer | The number of failed g | |||
get.<br> missing_time_in_millis | Integer | The total time for all failed get operations, in milliseconds. | |||
get.<br> current | Integer | The number of get operations that are currently running. | |||
search | Object | Statistics about the search operations for the node. | |||
search.<br> search.point_in_time_total | Integer | The total number of Point in Time contexts that have been created (completed and active) since the node last restarted. | |||
search.<br> search.point_in_time_time | Integer | The time that Point in Time contexts have been held open since the node last restarted. | |||
search.<br> search.point_in_time_current | Integer | The number of Point in Time contexts currently open. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
@@ -158,7 +158,10 @@ GET _nodes/stats/ | |||
"current" : 0 | |||
}, | |||
"search" : { | |||
"open_contexts" : 0, | |||
"search.point_in_time_total" : 9, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The results for _node/stats
for search attribute is:
"search": {
"open_contexts": 0,
"query_total": 0,
"query_time_in_millis": 0,
"query_current": 0,
"fetch_total": 0,
"fetch_time_in_millis": 0,
"fetch_current": 0,
"scroll_total": 0,
"scroll_time_in_millis": 0,
"scroll_current": 0,
"point_in_time_total": 0,
"point_in_time_time_in_millis": 0,
"point_in_time_current": 0,
"suggest_total": 0,
"suggest_time_in_millis": 0,
"suggest_current": 0
}
please remove search.
Parameter | Data Type | Description | ||
:--- | :--- | :--- | ||
keep_alive | Time | The amount of time to keep the PIT. Required. | ||
preference | String | The node or the shard used to perform the search. Optional. Default is random. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PIT do not support preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for create PIT, which does support preference. please add it back @kolchfa-aws
}, | ||
"pit": { | ||
"id": "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==", | ||
"keep_alive": "100m" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we give a comment that this is optional in search to give more stress? and provide it's default value as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add the note below the request that the parameter is optional. What is the default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1m
is the default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In search it should be completely optional. there is no default val as of now.
Introduced 2.4 | ||
{: .label .label-purple } | ||
|
||
Returns all PITs in the OpenSearch cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we give an example of list all PITS api here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example is in the "sample request" section below.
{ | ||
"pits": [ | ||
{ | ||
"pit_id": "o463QQEPbXktaW5kZXgtMDAwMDAxFnNOWU43ckt3U3IyaFVpbGE1UWEtMncAFjFyeXBsRGJmVFM2RTB6eVg1aVVqQncAAAAAAAAAAAEWcDVrM3ZIX0pRNS1XejE5YXRPRFhzUQEWc05ZTjdyS3dTcjJoVWlsYTVRYS0ydwAA", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we mention in comments that this one is local PIT or remote pit? @bharath-techie
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets not do that for now, it might be confusing for user.
|
||
Returns all PITs in the OpenSearch cluster. | ||
|
||
### Cross-cluster behavior |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bharath-techie @dhruv16dhr Should we have the cross cluster behaviour in different section for PIT apis? Defining it like this can be confusing for a new user since we are giving sample example under cross-cluster behaviour
for delete and list PITS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like as a user , they might miss reading upon cross cluster behavior if its down below.
_opensearch/point-in-time-api.md
Outdated
:--- | :--- | :--- | ||
pit_id | [Base64 encoded binary]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/binary) or an array of binaries | The PIT IDs of the PITs whose segments are to be listed. Required. | ||
|
||
#### Sample request: Delete PITs by ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be PITs by ID
I think. @bharath-techie please do give your view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this should be "PIT segments for list of PITs"
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minimal edits. Looks good.
_opensearch/point-in-time-api.md
Outdated
index1 2 r 10.212.74.139 _0 0 2 0 3.6kb 1364 false true 8.8.2 true | ||
``` | ||
|
||
## PIT Settings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If "Settings" isn't a proper name, lowercase it.
_opensearch/point-in-time.md
Outdated
|
||
PIT does not have the limitations of other pagination methods, because PIT search is not bound to a query, and it supports consistent pagination going forward and backward. If you have looked at page one of your results and are now on page two, you will see the same page one if you go back. | ||
|
||
## Point in Time (PIT) search |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to read "PIT search"
_opensearch/point-in-time.md
Outdated
|
||
## Security model | ||
|
||
This section describes permissions needed to use PIT API operations if you are running OpenSearch with the Security plugin enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lowercase "Security"
_opensearch/point-in-time.md
Outdated
|
||
This section describes permissions needed to use PIT API operations if you are running OpenSearch with the Security plugin enabled. | ||
|
||
Users can access all PIT API operations using the `point_in_time_full_access` role. If this role don't meet your needs, mix and match individual PIT permissions to suit your use case. Each action corresponds to an operation in the REST API. For example, the `indices:data/read/point_in_time/create` permission lets you create a PIT. The following is the list of possible permissions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change "don't" to "doesn't"
_opensearch/point-in-time.md
Outdated
|
||
- `indices:data/read/point_in_time/create` – Create API | ||
- `indices:data/read/point_in_time/delete` – Delete API | ||
- `indices:data/read/point_in_time/readall` – List all PITs API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this read "List all PIT APIs?"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API name is "list all PITs"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is it "List All PITs API" (it's capitalized in an earlier instance)?
@@ -128,6 +128,7 @@ Role | Description | |||
`index_management_full_access` | Grants full permissions to all index management actions, including ISM, transforms, and rollups. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "ISM" a noun or acronym? If an acronym, define it.
_opensearch/point-in-time-api.md
Outdated
|
||
### Response fields | ||
|
||
Field | Data Type | Description | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Field | Data Type | Description | | |
Field | Data Type | Description |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented, although this does not make a difference in rendering :)
_opensearch/point-in-time-api.md
Outdated
successful | Boolean | Whether the delete operation was successful. | ||
pit_id | [Base64 encoded binary]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/binary) | The PIT ID of the PIT to be deleted. | ||
|
||
## PIT Segments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should "Segments" be capitalized in this section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the API name so should be capitalized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had the same question. There are previous headings, for example, "Delete all PITs", where we did not capitalize them as the name of the API. If the headings are intended to reflect the names of the APIs, let's capitalize them consistently, and would it make sense to include "API" in the headings for maximum clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Since there is no "official" name, I will make these sentence case and assume they refer to the action.
_opensearch/point-in-time.md
Outdated
|
||
When you run a query with a PIT ID, you can use the `search_after` parameter to retrieve the next page of hits. This gives you control over the order of results in the pages of results. | ||
|
||
First, run a search query with a PIT ID: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As there are no items past this one should we just say "Run a search query with a PIT ID:" ?
_opensearch/point-in-time.md
Outdated
- `indices:data/read/search` – Search API | ||
- `indices:monitor/point_in_time/segments` – PIT Segments API | ||
|
||
For `all` type API operations, such as list all and delete all, the user needs the all indices (*) permission. For API operations such as search, create PIT, or delete list the user only needs individual index permissions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For `all` type API operations, such as list all and delete all, the user needs the all indices (*) permission. For API operations such as search, create PIT, or delete list the user only needs individual index permissions. | |
For `all` type API operations, such as list all and delete all, the user needs the all indices (*) permission. For API operations such as search, create PIT, or delete list, the user only needs individual index permissions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than my comments
Signed-off-by: Fanit Kolchina <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolchfa-aws Please see my comments and changes and let me know if you have any questions. Thanks!
@@ -648,6 +651,9 @@ get.<br> missing_total | Integer | The number of failed g | |||
get.<br> missing_time_in_millis | Integer | The total time for all failed get operations, in milliseconds. | |||
get.<br> current | Integer | The number of get operations that are currently running. | |||
search | Object | Statistics about the search operations for the node. | |||
search.<br> point_in_time_total | Integer | The total number of Point in Time contexts that have been created (completed and active) since the node last restarted. | |||
search.<br> point_in_time_time_in_millis | Integer | The time that Point in Time contexts have been held open since the node last restarted, in milliseconds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The amount of time"?
_opensearch/point-in-time-api.md
Outdated
|
||
# Point in Time API | ||
|
||
Use the [Point in Time (PIT)]({{site.url}}{{site.baseurl}}/opensearch/point-in-time/) API to manage Points in Time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are defining Point in Time as PIT, we should define it on first appearance and then use the acronym thereafter. Please apply to all files.
_opensearch/point-in-time-api.md
Outdated
|
||
# Point in Time API | ||
|
||
Use the [Point in Time (PIT)]({{site.url}}{{site.baseurl}}/opensearch/point-in-time/) API to manage Points in Time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the [Point in Time (PIT)]({{site.url}}{{site.baseurl}}/opensearch/point-in-time/) API to manage Points in Time. | |
Use the [Point in Time (PIT)]({{site.url}}{{site.baseurl}}/opensearch/point-in-time/) API to manage PITs. |
_opensearch/point-in-time-api.md
Outdated
Introduced 2.4 | ||
{: .label .label-purple } | ||
|
||
Creates a PIT. The `keep_alive` query parameter is required; it specifies how long to keep this PIT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creates a PIT. The `keep_alive` query parameter is required; it specifies how long to keep this PIT. | |
Creates a PIT. The `keep_alive` query parameter is required; it specifies how long to keep a PIT. |
_opensearch/point-in-time-api.md
Outdated
Field | Data Type | Description | ||
:--- | :--- | :--- | ||
pit_id | [Base64 encoded binary]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/binary) | The PIT ID. | ||
creation_time | long | The time the PIT was created in milliseconds since the epoch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
creation_time | long | The time the PIT was created in milliseconds since the epoch. | |
creation_time | long | The time the PIT was created, in milliseconds since the epoch. |
_opensearch/point-in-time.md
Outdated
|
||
For data streams, users must have both the data stream **and** the data stream's backing index permissions for any PIT operation. For example, the user must have permissions for the `data-stream-11` data stream and for its backing index `.ds-my-data-stream11-000001`. | ||
|
||
If users have the data stream permissions only, they will be able to create a PIT but they will not be able to use the PIT ID for other operations, such as search, without the backing index permissions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If users have the data stream permissions only, they will be able to create a PIT but they will not be able to use the PIT ID for other operations, such as search, without the backing index permissions. | |
If users have the data stream permissions only, they will be able to create a PIT, but they will not be able to use the PIT ID for other operations, such as search, without the backing index permissions. |
_opensearch/point-in-time.md
Outdated
|
||
Function | API | Description | ||
:--- | :--- | :--- | ||
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a Point in Time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a Point in Time. | |
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a PIT. |
_opensearch/point-in-time.md
Outdated
Function | API | Description | ||
:--- | :--- | :--- | ||
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a Point in Time. | ||
[List PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#list-all-pits) | `GET /_search/point_in_time/_all` | Lists all Points in Time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[List PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#list-all-pits) | `GET /_search/point_in_time/_all` | Lists all Points in Time. | |
[List PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#list-all-pits) | `GET /_search/point_in_time/_all` | Lists all PITs. |
_opensearch/point-in-time.md
Outdated
:--- | :--- | :--- | ||
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a Point in Time. | ||
[List PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#list-all-pits) | `GET /_search/point_in_time/_all` | Lists all Points in Time. | ||
[Delete PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#delete-pits) | `DELETE /_search/point_in_time`<br> `DELETE /_search/point_in_time/_all` | Deletes a Point in Time or all Points in Time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Delete PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#delete-pits) | `DELETE /_search/point_in_time`<br> `DELETE /_search/point_in_time/_all` | Deletes a Point in Time or all Points in Time. | |
[Delete PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#delete-pits) | `DELETE /_search/point_in_time`<br> `DELETE /_search/point_in_time/_all` | Deletes a PIT or all PITs. |
_opensearch/point-in-time.md
Outdated
[Create PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#create-a-pit) | `POST /<target_indexes>/_search/point_in_time?keep_alive=1h` | Creates a Point in Time. | ||
[List PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#list-all-pits) | `GET /_search/point_in_time/_all` | Lists all Points in Time. | ||
[Delete PIT]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#delete-pits) | `DELETE /_search/point_in_time`<br> `DELETE /_search/point_in_time/_all` | Deletes a Point in Time or all Points in Time. | ||
[PIT segments]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#pit-segments) | `GET /_cat/pit_segments/_all` | Provides information about the disk utilization of a Point in Time by describing its Lucene segments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[PIT segments]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#pit-segments) | `GET /_cat/pit_segments/_all` | Provides information about the disk utilization of a Point in Time by describing its Lucene segments. | |
[PIT segments]({{site.url}}{{site.baseurl}}/opensearch/point-in-time-api#pit-segments) | `GET /_cat/pit_segments/_all` | Provides information about the disk utilization of a PIT by describing its Lucene segments. |
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Fixes #674
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.