-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Mappings: Ensure that reindexing is always possible #8142
Comments
+1 |
1 similar comment
+1 |
I'm aware of some corner cases where people would definitely not store the source and want to get back only _id. Not saying that we should not do it but that we need to be aware of the consequences for some users. |
+1 |
1 similar comment
+1 |
I can imagine there are certain expert cases where users actually do want to disable storing |
+1 to that latest suggestion. On Thu, Feb 12, 2015 at 7:04 PM, Clinton Gormley notifications@github.com
|
Can we get more information about these expert use-cases? Having the |
eg from an email I received:
This custom plugin wasn't able to keep up with indexing and query speed, but disabling the source allowed them to do that. I realise that this is not typical, hence "expert case", but not storing the _source could be a tradeoff that some people would be willing to make. I just want to make it hard enough that the ordinary user won't do it without realising the consequences.
Yes absolutely. That is one of the tradeoffs. |
Maybe we should have a cluster level setting to allow indices to disable the _source field? this way we can put a big notice in the documentation warning about how this is an expert feature and what affect it has on backwards compatibility. Also with a cluster-wide setting, we can detect the setting on startup and put a warning in the logs stating that backwards compatibility is not guaranteed with this setting on. This way we will have made it very clear to the user that there are serious implications to turning on this setting |
Disabling |
They are indexing base64 binary? Come on man, you cant get much more esoteric than that. These excuses are pathetic. |
Also we optimized the stored fields in lucene a lot for 5.0, cpu costs around merging and so on are just not comparable to previous versions in most cases. So any old complaints, benchmarks, etc around this ---> obselete. |
I really agree here with robert. It's requirements like those that prevent progress and make 1 user happy for the cost of 99% having a harder life! |
Regardless of the outcome of elastic#8142, we should at least enforce that when _source is enabled, it is sufficient to reindex. This change removes the excludes and includes settings, since these modify the source, causing us to lose the ability to reindex some fields.
Regardless of the outcome of elastic#8142, we should at least enforce that when _source is enabled, it is sufficient to reindex. This change removes the excludes and includes settings, since these modify the source, causing us to lose the ability to reindex some fields. closes elastic#10814
Regardless of the outcome of elastic#8142, we should at least enforce that when _source is enabled, it is sufficient to reindex. This change removes the excludes and includes settings, since these modify the source, causing us to lose the ability to reindex some fields. closes elastic#10814
Current features (eg. update API) and future features (eg. reindex API) depend on _source. This change locks down the field so that it can no longer be disabled. It also removes legacy settings compress/compress_threshold. closes elastic#8142
Current features (eg. update API) and future features (eg. reindex API) depend on _source. This change locks down the field so that it can no longer be disabled. It also removes legacy settings compress/compress_threshold. closes elastic#8142 closes elastic#10915
Current features (eg. update API) and future features (eg. reindex API) depend on _source. This change locks down the field so that it can no longer be disabled. It also removes legacy settings compress/compress_threshold. closes elastic#8142 closes elastic#10915
Our mappings are very permissive in terms of what can be enabled or disabled, and in particular it is possible to disable the
_source
. This can be problematic if at some point you need to perform a change that requires reindexing (eg. an analyzer change) because this means that the data needs to be pulled again from another data source.Instead, we could disable some mappings options in order to make sure that we always have all the information needed to reindex (eg. with client helpers). Here are the settings that we would need to enforce:
_source
is enabled and stored_timestamp
,_ttl
,_routing
,_parent
are storedRelates to #8870
The text was updated successfully, but these errors were encountered: