Skip to content

Document index.mapping.exclude_source_vectors for vector _source exclusion - #7647

Open
ash9146 wants to merge 1 commit into
elastic:mainfrom
ash9146:document-exclude-source-vectors-setting
Open

Document index.mapping.exclude_source_vectors for vector _source exclusion#7647
ash9146 wants to merge 1 commit into
elastic:mainfrom
ash9146:document-exclude-source-vectors-setting

Conversation

@ash9146

@ash9146 ash9146 commented Jul 30, 2026

Copy link
Copy Markdown

Summary

The "Exclude vector fields from _source" section in
approximate-knn-search.md only described pruning vector fields via
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 documenting 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).

References

…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).
@ash9146
ash9146 requested a review from a team as a code owner July 30, 2026 07:43
@georgewallace
georgewallace requested a review from a team July 30, 2026 16:33
@leemthompo
leemthompo requested a review from kosabogi July 31, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant