[Derived Fields] Add parsing support for derived fields in mappings #12507
Labels
enhancement
Enhancement or improvement to existing feature or request
Search
Search query, autocomplete ...etc
Is your feature request related to a problem? Please describe
Once the
DerivedFieldMapper
class is added, support for parsing it from mappings will need to be added.Describe the solution you'd like
The definition for derived fields in the mappings will look something like the following:
Derived fields will be different from typical supported mapper fields in that the "type" can be any existing type (no current restrictions have been considered here yet but this issue will update if any have been identified during implementation). This would determine how the contents derived from the script are treated (ex.
date
,keyword
,ip
, etc.).Typically from the
MapperService
perspective, the type is mapped to the underlying builder/parser of the Mapper classes so it's easy to identify how that field mapping would be parsed. Sincetype
does not easily distinguish a derived field in this case though, we will add a separate named object that contains the derived fields for ease of separation in the mappings. For example:Related component
Search
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: