Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to store sparse_vector outside _source #117917

Merged
merged 13 commits into from
Dec 4, 2024

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 3, 2024

This PR introduces an option for sparse_vector to store its values separately from _source by using term vectors.
This capability is primarily needed by the semantic text field.

This PR introduces an option for `sparse_vector` to store its values separately from `_source` by using term vectors.
This capability is primarly needed by the semantic text field.
@jimczi jimczi added >feature :Search Foundations/Mapping Index mappings, including merging and defining field types v9.0.0 v8.18.0 labels Dec 3, 2024
@jimczi jimczi requested review from Mikep86 and kderusso December 3, 2024 17:50
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Dec 3, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

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

@benwtrent benwtrent self-requested a review December 3, 2024 19:58
Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

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

LGTM

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 Jim, nice addition!

@mayya-sharipova
Copy link
Contributor

Not related to your PR, but I've noticed I am getting an error message during index metadata validation when trying to create an index with sparse_vector field:

" Failed to parse mapping: The [sparse_vector] field type is not supported on indices created on versions 8.0 to 8.10."

@jimczi
Copy link
Contributor Author

jimczi commented Dec 3, 2024

" Failed to parse mapping: The [sparse_vector] field type is not supported on indices created on versions 8.0 to 8.10."

In which context? Are you testing with any of these versions?

@Mikep86 Mikep86 added the auto-backport Automatically create backport pull requests when merged label Dec 3, 2024
@jimczi jimczi merged commit 0901a27 into elastic:main Dec 4, 2024
16 checks passed
@jimczi jimczi deleted the sparse_vector_store branch December 4, 2024 17:29
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 117917

@jimczi jimczi removed the auto-backport Automatically create backport pull requests when merged label Dec 4, 2024
jimczi added a commit to jimczi/elasticsearch that referenced this pull request Dec 4, 2024
This PR introduces an option for `sparse_vector` to store its values separately from `_source` by using term vectors.
This capability is primarly needed by the semantic text field.
elasticsearchmachine pushed a commit that referenced this pull request Dec 4, 2024
)

This PR introduces an option for `sparse_vector` to store its values separately from `_source` by using term vectors.
This capability is primarly needed by the semantic text field.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport pending >feature :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants