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:
- I noticed that PIT ID is always same in the responses. Can there be a different PIT return in the request?
- If a new PIT is returned, do I need to close both the PITs in the end?