Document index.mapping.exclude_source_vectors for vector _source exclusion - #7647
Open
ash9146 wants to merge 1 commit into
Open
Document index.mapping.exclude_source_vectors for vector _source exclusion#7647ash9146 wants to merge 1 commit into
ash9146 wants to merge 1 commit into
Conversation
…usion The "Exclude vector fields from _source" section only described the generic excludes mapping parameter, with a warning that reindex "might not actually contain the dense_vector field in the new index." elastic/elasticsearch#131907 introduced a dedicated index.mapping.exclude_source_vectors index setting (enabled by default for new indices as of 9.2), which supports automatic rehydration for reindex, update, update_by_query, and recovery - solving exactly the problem this page's existing warning describes. This adds a "Recommended" subsection for the new setting, and reframes the existing excludes-parameter guidance as an alternative that still carries the reindex caveat (since it doesn't support rehydration).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The "Exclude vector fields from
_source" section inapproximate-knn-search.mdonly described pruning vector fields viathe generic
excludesmapping parameter, with a warning that reindex"might not actually contain the
dense_vectorfield in the new index."elastic/elasticsearch#131907 introduced a dedicated
index.mapping.exclude_source_vectorsindex setting, enabled bydefault for new indices as of 9.2, which supports automatic
rehydration for reindex, update, update_by_query, and recovery -
solving exactly the problem this page's existing warning describes.
This adds a "Recommended" subsection documenting the new setting, and
reframes the existing
excludes-parameter guidance as an alternativethat still carries the reindex caveat (since it doesn't support
rehydration).
References
exclude_source_vectorsby default for new indices elasticsearch#131907 (the implementing PR)exclude_source_vectors by default for new indices" entry, which
confirms the rehydration behavior and default-on-9.2 timing.