Recommend synthetic _source before disabling _source entirely - #7699
Open
ash9146 wants to merge 1 commit into
Open
Recommend synthetic _source before disabling _source entirely#7699ash9146 wants to merge 1 commit into
ash9146 wants to merge 1 commit into
Conversation
The mapping-source-field.md reference page lists synthetic _source as the first option to consider for reducing _source disk usage, before disabling _source completely - but this production-guidance page only covered the latter, more disruptive option (reindex/update stop working). Synthetic _source avoids that tradeoff for most common field types by reconstructing _source at retrieval time from doc_values instead of storing it. Notes the Enterprise subscription requirement (per elastic.co/subscriptions, synthetic _source has been an Enterprise feature since 8.17) and the minor document-shape differences synthetic _source can introduce, so this isn't presented as a free lunch.
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
mapping-source-field.mdreference page lists synthetic_sourceas the first option to consider for reducing
_sourcedisk usage,before disabling
_sourcecompletely:This production-guidance page (
disk-usage.md) only covered the second,more disruptive option under "Disable
_source" - reindex, update, andhighlighting stop working once
_sourceis disabled. Synthetic_sourceavoids that tradeoff for most common field types byreconstructing
_sourceat retrieval time fromdoc_valuesinstead ofstoring it, so reindex and update continue to work normally.
What's added
A new "Reduce
_sourcestorage overhead" section, placed right beforethe existing "Disable
_source" section, that:_sourceas the option to consider first(per elastic.co/subscriptions, synthetic
_sourcehas been anEnterprise feature since 8.17)
_sourcecan differ slightly from theoriginal document (field order, array handling), linking to the
relevant reference section for details
This isn't presented as a strictly better replacement for the existing
"Disable
_source" section - both stay, since synthetic_sourcerequires a subscription and has its own caveats, so fully disabling
_sourceremains a valid option for some readers.Testing
"Disable
_source"