Skip to content

Conversation

@romseygeek
Copy link
Contributor

At search time, we can now always use our custom comparators that
allow pruning on secondary sorts. At index time, we need to always use
Lucene SortFields, which is fine as pruning isn't used at this point in any case.

At search time, we can now always use our custom comparators that allow
pruning on secondary sorts.  At index time, we need to always use
Lucene SortFields, which is fine as pruning isn't used at this point
in any case.
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

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.

LGTM 👍

private static final Consumer<DocIdSetIterator> checkClass = disi -> {
assertThat(disi, instanceOf(XUpdateableDocIdSetIterator.class));
XUpdateableDocIdSetIterator iterator = (XUpdateableDocIdSetIterator) disi;
assertThat(iterator.getDelegate().getClass().getName(), containsString("SecondarySortIterator"));
Copy link
Member

Choose a reason for hiding this comment

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

nice 👍

@romseygeek
Copy link
Contributor Author

Buildkite benchmark this with elastic-logs please

@elasticmachine
Copy link
Collaborator

elasticmachine commented Nov 11, 2025

💚 Build Succeeded

This build ran two elastic-logs benchmarks to evaluate performance impact of this PR.

History

cc @romseygeek

@romseygeek romseygeek enabled auto-merge (squash) November 12, 2025 17:08
@romseygeek romseygeek disabled auto-merge November 12, 2025 17:08
@romseygeek romseygeek merged commit 61fa647 into elastic:main Nov 12, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants