Skip to content

Delegate rangeIntoBitSet in SingletonSortedNumericDocValues#16295

Open
costin wants to merge 2 commits into
apache:mainfrom
costin:lucene/singleton-range-delegation
Open

Delegate rangeIntoBitSet in SingletonSortedNumericDocValues#16295
costin wants to merge 2 commits into
apache:mainfrom
costin:lucene/singleton-range-delegation

Conversation

@costin

@costin costin commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

SingletonSortedNumericDocValues did not override rangeIntoBitSet, causing single-valued sorted numeric fields queried via SortedNumericDocValuesField.newSlowRangeQuery to fall back to per-doc scalar evaluation even when the underlying NumericDocValues has an optimized override.

This small PR fixes this inconsistency.

SingletonSortedNumericDocValues did not override rangeIntoBitSet,
causing single-valued sorted numeric fields queried via
SortedNumericDocValuesField.newSlowRangeQuery to fall back to
per-doc scalar evaluation even when the underlying NumericDocValues
has an optimized override.
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