Skip to content

Fix incorrect dynamic mapping for non-numeric-value arrays #101965#101967

Merged
benwtrent merged 3 commits intoelastic:mainfrom
benwtrent:bugfix/dynamic-parsing-failure
Nov 9, 2023
Merged

Fix incorrect dynamic mapping for non-numeric-value arrays #101965#101967
benwtrent merged 3 commits intoelastic:mainfrom
benwtrent:bugfix/dynamic-parsing-failure

Conversation

@benwtrent
Copy link
Copy Markdown
Member

After #98512 we incorrectly attempt to map an array of any single value type to dense_vector.

Instead, we should validate that ALL mappers are numeric and that ALL of them are float.

closes: #101965

@benwtrent benwtrent added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v8.11.1 v8.12.0 labels Nov 9, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Nov 9, 2023
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
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 Ben!

@benwtrent benwtrent added the auto-backport Automatically create backport pull requests when merged label Nov 9, 2023
@benwtrent benwtrent merged commit 1656f05 into elastic:main Nov 9, 2023
@benwtrent benwtrent deleted the bugfix/dynamic-parsing-failure branch November 9, 2023 16:36
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💚 Backport successful

Status Branch Result
8.11

benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Nov 9, 2023
…1965 (elastic#101967)

After elastic#98512 we incorrectly attempt to map an array of any single value type to dense_vector.

Instead, we should validate that ALL mappers are numeric and that ALL of them are `float`.

closes: elastic#101965
benwtrent added a commit that referenced this pull request Nov 9, 2023
…1965 (#101967) (#101975)

* Fix incorrect dynamic mapping for non-numeric-value arrays #101965 (#101967)

After #98512 we incorrectly attempt to map an array of any single value type to dense_vector.

Instead, we should validate that ALL mappers are numeric and that ALL of them are `float`.

closes: #101965

* Update rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/60_dense_vector_dynamic_mapping.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v8.11.1 v8.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Array of strings incorrectly indexed as dense_vector

3 participants