Skip to content

Conversation

@ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Apr 29, 2022

Integrates the fields API with placeholder fields.

Relates #81210

@ywelsch ywelsch added >non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types v8.3.0 labels Apr 29, 2022
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Apr 29, 2022
@elasticmachine
Copy link
Collaborator

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

@ywelsch ywelsch requested a review from romseygeek April 29, 2022 09:35

@Override
public ValueFetcher valueFetcher(SearchExecutionContext context, String format) {
throw new UnsupportedOperationException("can't fetch values on place holder field type");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In #85059 I forgot that you're not supposed to throw UnsupportedOperationException here (only allowed for metadata fields) as it will break the fields API.

@ywelsch ywelsch mentioned this pull request Apr 29, 2022
32 tasks
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM!

@ywelsch ywelsch merged commit 425be6a into elastic:master Apr 29, 2022
@ywelsch
Copy link
Contributor Author

ywelsch commented Apr 29, 2022

Thanks @romseygeek!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team v8.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants