-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Synthetic _source automatically sets store to true on text fields #97039
Comments
Pinging @elastic/es-analytics-geo (Team:Analytics) |
|
We discussed this and we should default the This better than failing with an error. If store is specifically configured to |
I assume, based on the discussion here, what is stopping from having this option used is not having the support of package-spec. Correct? Please let me know from which version of Elasticsearch, the support of |
Setting
Note that the `error: building package failed: invalid content found in built zip package: found 1 validation error:
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Synthetic source requires text fields to be stored or have keyword sub-field that supports synthetic source. If there are no keyword fields users currently have to explicitly set 'store' to 'true' or get a validation exception. This is not the best experience. It is quite likely that setting `store` to `true` is the correct thing to do but users still get an error and need to investigate it. With this change if `store` setting is not specified in such context it will be set to `true` by default. Setting it explicitly to `false` results in the exception. Closes elastic#97039
* Text fields are stored by default with synthetic source Synthetic source requires text fields to be stored or have keyword sub-field that supports synthetic source. If there are no keyword fields users currently have to explicitly set 'store' to 'true' or get a validation exception. This is not the best experience. It is quite likely that setting `store` to `true` is the correct thing to do but users still get an error and need to investigate it. With this change if `store` setting is not specified in such context it will be set to `true` by default. Setting it explicitly to `false` results in the exception. Closes #97039
There are at least some metric related integrations that have templates that use the text field type.
When these integrations are migrated to tsdb, then often this fails initially complaining with the error that text field either needs a subfield of type keyword or should be stored (by setting store=true, enabling stored fields for this field specifically).
This is a bit confusing sometimes, because the error doesn't come from ES directly and takes time to figure out what needs to be changed.
There are two options here, remove the text field from template when upgrading to tsdb or make suggested changes to the field of type text. What often happens is that
store
is set totrue
. However if this is always the intended approach for integrations, should Elasticsearch change the default ofstore
totrue
for tsdb?Relates to #96254
The text was updated successfully, but these errors were encountered: