Skip to content

Add runtime field section to Field Capabilities API (#68904)#68915

Merged
cbuescher merged 1 commit intoelastic:7.xfrom
cbuescher:backport-68904
Feb 11, 2021
Merged

Add runtime field section to Field Capabilities API (#68904)#68915
cbuescher merged 1 commit intoelastic:7.xfrom
cbuescher:backport-68904

Conversation

@cbuescher
Copy link
Copy Markdown
Member

Currently runtime fields from search requests don't appear in the output of the
field capabilities API, but some consumer of runtime fields would like to see
runtime section just like they are defined in search requests reflected and
merged into the field capabilities output.
This change adds parsing of a "runtime_mappings" section equivallent to the one
on search requests to the _field_caps endpoint, passes this section down to
the shard level where any runtime fields defined here overwrite the mapping of
the targetet indices.

Closes #68117

Currently runtime fields from search requests don't appear in the output of the
field capabilities API, but some consumer of runtime fields would like to see
runtime section just like they are defined in search requests reflected and
merged into the field capabilities output.
This change adds parsing of a "runtime_mappings" section equivallent to the one
on search requests to the `_field_caps` endpoint, passes this section down to
the shard level where any runtime fields defined here overwrite the mapping of
the targetet indices.

Closes elastic#68117
@cbuescher cbuescher merged commit 96e3428 into elastic:7.x Feb 11, 2021
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.

1 participant