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

Allow field retrieval on placeholder fields #86289

Merged
merged 1 commit into from Apr 29, 2022

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/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
@@ -114,7 +114,15 @@ public PlaceHolderFieldType(String name, String type, Map<String, String> meta)

@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/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.

None yet

3 participants