Skip to content

Conversation

prwhelan
Copy link
Member

use_point_in_time has been in the docs since before 8.18

Resolve elastic/elasticsearch#134841

Copy link
Contributor

Following you can find the validation changes against the target branch for the APIs.

No changes detected.

You can validate these APIs yourself by using the make validate target.

@prwhelan prwhelan marked this pull request as ready for review September 19, 2025 17:20
max_page_search_size?: integer
/**
* Specifies whether the transform checkpoint will use the Point In Time API while searching over the source index.
* @ext_doc_id point-in-time-api
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@elastic/developer-docs Is this a correct usage of ext_doc_id?

This Transform API can be configured to use the PIT API, and here point-in-time-api links to the point-in-time API docs.

Copy link
Contributor

@kosabogi kosabogi Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @pquentin, the @ext_doc_id looks fine here. I see it’s already in the table.csv file as well, so it should be good. What we usually do to make sure the links appear correctly is test them locally by running these (you should have the bump CLI installed):

make generate
make transform-to-openapi
bump preview output/openapi/elasticsearch-openapi.json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to have worked as intended:
image
And it correctly links to https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time

Copy link
Contributor

@leemthompo leemthompo Sep 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI we could add a description field to the link definition in

point-in-time-api,https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-open-point-in-time,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/point-in-time-api.html,

and this would be render nicer link text than just External documentation 💅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have an example of that?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be as simple as Point in Time API

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*/
max_page_search_size?: integer
/**
* Specifies whether the transform checkpoint will use the Point In Time API while searching over the source index.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if you set it to false? It uses the scroll API?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally we'd explain the pros/cons differences of each approach, or at least outline why you'd want to use the PIT, rather than just the how :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should that go on the PIT page? in either case, we'd need someone familiar with PIT to go into that detail, I'm just trying to show what users can configure rather than keeping the setting hidden

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Transform] Show "use_point_in_time" in the docs
4 participants