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

FieldTypeLookup#getMatchingFieldTypes to rely on getMatchingFieldNames #73590

Conversation

javanna
Copy link
Member

@javanna javanna commented Jun 1, 2021

getMatchingFieldTypes has its own logic, that is more or less duplicated from getMatchingFieldNames. We have been talking about removing getMatchingFieldTypes but there are a couple of leftover usages. What we can do instead is make it rely on the getMatchingFieldNames logic so that we remove the code duplication.

getMatchingFieldTypes has its own logic, that is more or less duplicated from getMatchingFieldNames. We have been talking about removing getMatchingFieldTypes but there are a couple of leftover usages. What we can do instead is make it rely on the getMatchingFieldNames logic so that we remove the code duplication.
@javanna javanna added :Search Foundations/Mapping Index mappings, including merging and defining field types >refactoring v8.0.0 v7.14.0 labels Jun 1, 2021
@javanna javanna requested review from jtibshirani and jimczi June 1, 2021 12:41
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Jun 1, 2021
@elasticmachine
Copy link
Collaborator

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

@javanna
Copy link
Member Author

javanna commented Jun 1, 2021

I think that I found a way to remove getMatchingFieldTypes, starting with #73617. That means no review is needed here, I will close it.

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 Team:Search Meta label for search team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants