Skip to content
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

In FieldTypeLookup, factor out flat object field logic. #52091

Merged
merged 1 commit into from
Feb 10, 2020

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