You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #3975 we implemented cursor pagination for the V4 Search API using the search_after parameter.
There can be some corner cases where the cursor pagination can lead to inconsistent results, for instance, if the last or first document on the current page used as the cursor is updated before moving to the next page and the field used as the sorting key (like 'dateFiled') or if sorting by relevance, the update affects the document score.
This can lead to inconsistencies in results when moving to the next or previous page, where the updated document or documents can be displayed again. To solve this issue, ES documentation recommends to use a Point in time.
A point in time (PIT) is a lightweight snapshot of the index, so all requests performed using the same PIT will query the same index states, maintaining consistency during the lifetime of the PIT.
Thus, we can consider implementing this in the future as an improvement if required. It is important to note that although the PIT is lightweight, it still represents an additional resource load. Therefore, some assessment and evaluation in terms of resource usage are recommended before deciding whether to implement it for all users or only for those requiring high consistency in results.
The text was updated successfully, but these errors were encountered:
In #3975 we implemented cursor pagination for the V4 Search API using the
search_after
parameter.There can be some corner cases where the cursor pagination can lead to inconsistent results, for instance, if the last or first document on the current page used as the cursor is updated before moving to the next page and the field used as the sorting key (like 'dateFiled') or if sorting by relevance, the update affects the document score.
This can lead to inconsistencies in results when moving to the next or previous page, where the updated document or documents can be displayed again. To solve this issue, ES documentation recommends to use a Point in time.
A point in time (PIT) is a lightweight snapshot of the index, so all requests performed using the same PIT will query the same index states, maintaining consistency during the lifetime of the PIT.
Thus, we can consider implementing this in the future as an improvement if required. It is important to note that although the PIT is lightweight, it still represents an additional resource load. Therefore, some assessment and evaluation in terms of resource usage are recommended before deciding whether to implement it for all users or only for those requiring high consistency in results.
The text was updated successfully, but these errors were encountered: