Close point in time

edit

Point in time should be closed as soon as they are no longer used in search requests. A ClosePointInTime request requires a point in time id argument:

ClosePointInTimeRequest closeRequest = new ClosePointInTimeRequest(pitId); 
ClearScrollResponse closeResponse = client.closePointInTime(closeRequest, RequestOptions.DEFAULT);
boolean succeeded = closeResponse.isSucceeded();

Create a close point in time request with a PIT id