Skip to content

[9.3] Fix dense_vector default index options when using BFLOAT16 (#145202)#145356

Merged
Mikep86 merged 4 commits intoelastic:9.3from
Mikep86:backport/9.3/pr-145202
Mar 31, 2026
Merged

[9.3] Fix dense_vector default index options when using BFLOAT16 (#145202)#145356
Mikep86 merged 4 commits intoelastic:9.3from
Mikep86:backport/9.3/pr-145202

Conversation

@Mikep86
Copy link
Copy Markdown
Contributor

@Mikep86 Mikep86 commented Mar 31, 2026

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…45202)

There is a bug in the dense_vector field mapper where default index options will be set to null when the element type is BFLOAT16. This PR fixes that by handling BFLOAT16 as equivalent to FLOAT and adding a default index options test.

(cherry picked from commit d807c64)

# Conflicts:
#	server/src/main/java/org/elasticsearch/index/IndexVersions.java
#	server/src/main/java/org/elasticsearch/inference/SimilarityMeasure.java
@Mikep86 Mikep86 requested review from benwtrent and thecoop March 31, 2026 18:21
@Mikep86 Mikep86 enabled auto-merge (squash) March 31, 2026 18:50
@Mikep86 Mikep86 merged commit 916efb6 into elastic:9.3 Mar 31, 2026
32 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.

3 participants