Skip to content

Conversation

@HoustonPutman
Copy link
Contributor

Description

Currently using the ExitableDirectoryReader will render some optimizations for Singleton Numeric/SortedDocValues useless since it covers up whether the returned SortedSetDocValues or SortedNumericDocValues are singletons.

The fix is to check if they are singletons, and if so then filter the unwrapped singleton and then re-wrap it.

@HoustonPutman HoustonPutman added this to the 10.4.0 milestone Dec 11, 2025
@HoustonPutman HoustonPutman changed the title ExistableDirectoryReader should not cover-up singletons ExitableDirectoryReader should not cover-up singletons Dec 11, 2025
@HoustonPutman
Copy link
Contributor Author

HoustonPutman commented Dec 11, 2025

I actually think this was my mistake, the wrapping/unwrapping is done in DocValues after fetching from the leaf reader. So this is likely unnecessary.

Nevermind, this is definitely necessary.

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.

1 participant