Skip to content

Use IndexOrDocValuesQuery in NumberFieldType#termQuery implementations - #140734

Merged
iverase merged 2 commits into
elastic:mainfrom
iverase:numericFieldsTermQuery
Jan 19, 2026
Merged

iverase merged 2 commits into
elastic:mainfrom
iverase:numericFieldsTermQuery

Conversation

@iverase

@iverase iverase commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

Use IndexOrDocValuesQuery whenever possible so for low cardinality fields we don't need to allocated a FixedBitSet if the query is together with more restrictive filters.

relates #128293

@iverase iverase added >enhancement :Search Foundations/Search Catch all for Search Foundations v9.4.0 labels Jan 15, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jan 15, 2026
@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine

Copy link
Copy Markdown
Collaborator

Hi @iverase, I've created a changelog YAML for you.

@jimczi jimczi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@iverase
iverase merged commit ba505a5 into elastic:main Jan 19, 2026
35 checks passed
@iverase
iverase deleted the numericFieldsTermQuery branch January 19, 2026 08:06
spinscale pushed a commit to spinscale/elasticsearch that referenced this pull request Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants