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

ExistsQueryBuilder to no longer rely on getMatchingFieldTypes #73617

Conversation

javanna
Copy link
Member

@javanna javanna commented Jun 1, 2021

We've been discussing possibly removing FieldTypeLookup#getMatchingFieldTypes, or at least its SearchExecutionContext variant that applies runtime mappings, as it adds complexity and has only a few usages.

This is another step in that direction: the exists query can rely on getMatchingFieldNames instead, and look up field types by name.

We've been discussing possibly removing `FieldTypeLookup#getMatchingFieldTypes`, or at least its `SearchExecutionContext` variant that applies runtime mappings.

This is another step in that direction: the exists query can rely on getMatchingFieldNames instead, and look up field types by name.
@javanna javanna added :Search/Search Search-related issues that do not fall into other categories >refactoring v8.0.0 v7.14.0 labels Jun 1, 2021
@javanna javanna requested review from jtibshirani and jimczi June 1, 2021 14:50
@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)

Copy link
Contributor

@jtibshirani jtibshirani left a comment

Choose a reason for hiding this comment

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

This makes sense to me. It seems we need either getMatchingFieldNames or getMatchingFieldTypes, but certainly not both.

To check I understand the plan -- will we follow up with a change to remove/ rework getMatchingFieldTypes completely? Edit: nevermind, I just saw #73618 :)

@javanna javanna merged commit 4ca2e03 into elastic:master Jun 2, 2021
javanna added a commit to javanna/elasticsearch that referenced this pull request Jun 2, 2021
…c#73617)

We've been discussing possibly removing `FieldTypeLookup#getMatchingFieldTypes`, or at least its `SearchExecutionContext` variant that applies runtime mappings.

This is another step in that direction: the exists query can rely on getMatchingFieldNames instead, and look up field types by name.
javanna added a commit that referenced this pull request Jun 2, 2021
We've been discussing possibly removing `FieldTypeLookup#getMatchingFieldTypes`, or at least its `SearchExecutionContext` variant that applies runtime mappings.

This is another step in that direction: the exists query can rely on getMatchingFieldNames instead, and look up field types by name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>refactoring :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants