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

Support mapping runtime fields #5230

Merged
merged 3 commits into from
Jan 5, 2021
Merged

Conversation

stevejgordon
Copy link
Contributor

This PR adds support to map runtime fields on CREATE index and PUT mapping requests. Support for searches using runtime fields will follow in another PR.

@Mpdreamz I made RuntimeFieldsDescriptor non-generic as it doesn't need anything from TDocument. This seems to work fine but I noticed that some other descriptors are generic without accessing T so I wanted to check if this is problematic here?

Contributes to #5198

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Mpdreamz
Copy link
Member

Mpdreamz commented Jan 5, 2021

This seems to work fine but I noticed that some other descriptors are generic without accessing T so I wanted to check if this is problematic here?

If they do the might use it for inference of indices or types, or they are simply typed wrong!

@stevejgordon stevejgordon merged commit c563a3c into 7.11 Jan 5, 2021
@stevejgordon stevejgordon deleted the feature/runtime-field-mapping branch January 5, 2021 14:07
github-actions bot pushed a commit that referenced this pull request Jan 5, 2021
* Add support for mapping runtime fields
* Add missing XML comment for PIT
github-actions bot pushed a commit that referenced this pull request Jan 5, 2021
* Add support for mapping runtime fields
* Add missing XML comment for PIT
stevejgordon added a commit that referenced this pull request Jan 6, 2021
* Add support for mapping runtime fields
* Add missing XML comment for PIT

Co-authored-by: Steve Gordon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants