Skip to content

Conversation

@jtibshirani
Copy link
Contributor

@jtibshirani jtibshirani commented Mar 9, 2021

This PR backports #68780 to move flattened fields to core.

It also removes flattened fields from xpack usage stats now that they live in
core. The usage stats were already removed in (#53076), but this PR was not
backported to avoid a breaking change on 7.x. We have now clarified that usage
stats updates are not considered breaking, so it is safe to backport this
change.

This field mapper only lived in its own module so it could be licensed as x-pack
basic. Now it can be moved to core, which matches its status as a core type.
@jtibshirani jtibshirani added :Search Foundations/Mapping Index mappings, including merging and defining field types >refactoring backport labels Mar 9, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Mar 9, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

/**
* @deprecated This class exists for backwards compatibility with 7.12 only
* and should not be used for other purposes.
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this class for cases when _xpack/usage API is used in a mixed 7.12 and 7.13 nodes cluster, and this 7.13 node acts as a coordinating node and it needs to process the usage reply from 7.12 nodes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes exactly. We took the same approach for runtime fields -- @javanna explained it nicely in the RuntimeFieldsFeatureSetUsage Javadoc.

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtibshirani Thanks, this LGTM

@jtibshirani jtibshirani merged commit 13946ea into elastic:7.x Mar 11, 2021
@jtibshirani jtibshirani deleted the flattened-fields branch March 11, 2021 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >refactoring :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants