Skip to content

Conversation

@romseygeek
Copy link
Contributor

These are extensions of DoubleValues and LongValues that are guaranteed
to have values for every document, which means they can also be used for
iteration. This allows us to re-enable pruning on sorts that use them as sources
for comparators.

These are extensions of DoubleValues and LongValues that are guaranteed
to have values for every document, which means they can also be used
for iteration.  This allows us to re-enable pruning on sorts that use
them as sources for comparators.
@romseygeek romseygeek requested a review from martijnvg November 10, 2025 10:47
@romseygeek romseygeek self-assigned this Nov 10, 2025
@romseygeek romseygeek added >non-issue :Search/Search Search-related issues that do not fall into other categories v9.3.0 labels Nov 10, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Nov 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@romseygeek
Copy link
Contributor Author

This is a pre-requisite for always using custom comparators. Once this is merged then we can stop using SortedNumericSortField anywhere, and ensure that pruning is a) always enabled when possible and b) uses our custom DISI builders for timestamp sorts.

@romseygeek
Copy link
Contributor Author

This also removes the need for NumericDoubleValues to exist, but removing that is pretty noisy so I will leave it for a follow-up.

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@romseygeek romseygeek merged commit 5f1d8bf into elastic:main Nov 10, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants