Should I close the older PIT id once it has been replaced by a new PIT id?

I am working on a task in which I have to search a large number of documents in Elasticsearch. I use SearchAPI with SearchAfter and PointInTime as recommended. While fetching the results, I am using the PIT ID returned by the previous search request in next request. My questions are:

  1. I noticed that PIT ID is always same in the responses. Can there be a different PIT return in the request?
  2. If a new PIT is returned, do I need to close both the PITs in the end?
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.