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
Serialize doc values settings for _timestamp #8967
Conversation
@@ -277,6 +279,9 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws | |||
if (includeDefaults || fieldType.stored() != Defaults.FIELD_TYPE.stored()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also a line above that checks if all options have the default value and returns early. I think we should add the doc-values-related settings to this line as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All metadata mappers have this kind of behaviour which is a pita to maintain... I'm wondering if we could come up with a better solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this, I just left a comment about the detection that all parameters have the default value. |
LGTM Thanks for opening this new issue! |
This change fixes _timestamp's serialization method to write out `doc_values` and `doc_values_format`, which could already be set, but would not be written out. closes elastic#8893 closes elastic#8967
This change fixes _timestamp's serialization method to write out `doc_values` and `doc_values_format`, which could already be set, but would not be written out. closes elastic#8893 closes elastic#8967
This change fixes _timestamp's serialization method to write out
doc_values
anddoc_values_format
, which could already be set,but would not be written out.
closes #8893