Skip to content

Conversation

@jtibshirani
Copy link
Contributor

Currently, the logic for looking up flattened field types lives in the
top-level FieldTypeLookup. This PR moves it into a dedicated class
DynamicKeyFieldTypeLookup. It's nice to remove complexity from
FieldTypeLookup, as I anticipate adding more logic to it when adding
source_path information to the field caps API
(#49264).

@jtibshirani jtibshirani added :Search Foundations/Mapping Index mappings, including merging and defining field types >refactoring v8.0.0 v7.7.0 labels Feb 8, 2020
@elasticmachine
Copy link
Collaborator

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

@jtibshirani
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/1

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM

@jtibshirani
Copy link
Contributor Author

Thanks @cbuescher for the review !

@jtibshirani jtibshirani merged commit 2c30581 into elastic:master Feb 10, 2020
@jtibshirani jtibshirani deleted the dynamic-key-lookup branch February 10, 2020 18:40
jtibshirani added a commit that referenced this pull request Feb 10, 2020
Currently, the logic for looking up `flattened` field types lives in the
top-level `FieldTypeLookup`. This PR moves it into a dedicated class
`DynamicKeyFieldTypeLookup`.
jtibshirani added a commit that referenced this pull request Feb 10, 2020
Currently, the logic for looking up `flattened` field types lives in the
top-level `FieldTypeLookup`. This PR moves it into a dedicated class
`DynamicKeyFieldTypeLookup`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search Foundations/Mapping Index mappings, including merging and defining field types v7.6.1 v7.7.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants