-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Feature Request] Tie breaker for search with search_after pagination #11831
Copy link
Copy link
Open
Labels
Search:Query CapabilitiesenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Description
Is your feature request related to a problem? Please describe
When we do the sorting by datetime and have the recurrent values.
#1 "2024-01-03 19:57:38"
#2 "2024-01-03 19:57:38"
...
#3 "2024-01-04 19:57:39"
#4 "2024-01-04 19:57:39"
This makes leaks of the docs while paginating using search_after parameter. According to the dataset above imagine first 10K docs ends with #1 value, so the next 10K will start with #3. #2 is missed.
This feature is requested by other users as well: https://stackoverflow.com/questions/76042569/can-i-imitate-a-tie-breaker-field-in-opensearch-with-search-after-pagination
Describe the solution you'd like
We need to introduce an default tie_breaker_fields for the PIT with search_after.
Related component
Search:Query Capabilities
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Search:Query CapabilitiesenhancementEnhancement or improvement to existing feature or requestEnhancement or improvement to existing feature or request
Type
Projects
Status
Later (6 months plus)