Skip to content

Conversation

@benwtrent
Copy link
Member

In an effort to support more performant range queries, a refactor did a poor replacement for numeric fields that don't have doc-values.

PR #128763, instead of only replacing LongField values also replaced a handful of LongPoint accesses, which causes a failure assuming doc-values will be present, when they are not.

This bug manifests when there are no doc values present for long or scaled float field. Users will receive a 500 failure mentioning:

unexpected docvalues type NONE for field 'my-field' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type.

This bug is not present in 8.19 or 9.1 as those versions updated to a new Lucene version and reverted the buggy patch.

related to: #128763

closes: #129995

@benwtrent benwtrent added >bug :Search Relevance/Search Catch all for Search Relevance v9.0.4 labels Jun 26, 2025
@benwtrent benwtrent requested review from iverase and pmpailis June 26, 2025 12:53
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jun 26, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

Thanks for a quick fix, Ben!

@benwtrent benwtrent merged commit 8994262 into elastic:9.0 Jun 26, 2025
17 checks passed
@benwtrent benwtrent deleted the bugfix-address-bad-refactor-128763 branch June 26, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.0.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants