You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this configuration, user can append a new field or transform an existing field, but sometimes, user needs another pattern: create a new field based on an existing field value. E.g. below example has multiple new fields created with existing fields:
Based on existing field a to generate a new field a_wc, a_wc records the words count field a has.
Based on existing field b to generate a new field b_wc, b and b_wc are list type.
Based on existing field c -> d to generate a new field d_wc, c -> d and d_wc are map type.
Currently the configuration of processor doesn't support this multiple fields mapping configuration fashion, which makes every processor needs to implement similar logics in their own.
Describe the solution you'd like
We can support multiple fields mapping configuration in opensearch core so that it can be reused in different processors across different plugins. We can support two different configuration styles for this, e.g.:
Is your feature request related to a problem? Please describe
Background
Current OpenSearch Core support field value configuration in multiple processors, e.g. AppendProcessor, SetProcessor etc. An example like below:
With this configuration, user can append a new field or transform an existing field, but sometimes, user needs another pattern: create a new field based on an existing field value. E.g. below example has multiple new fields created with existing fields:
a
to generate a new fielda_wc
,a_wc
records the words count fielda
has.b
to generate a new fieldb_wc
,b
andb_wc
are list type.c -> d
to generate a new fieldd_wc
,c -> d
andd_wc
are map type.Problem statement
Currently the configuration of processor doesn't support this
multiple fields mapping configuration
fashion, which makes every processor needs to implement similar logics in their own.Describe the solution you'd like
We can support
multiple fields mapping configuration
in opensearch core so that it can be reused in different processors across different plugins. We can support two different configuration styles for this, e.g.:Related component
Other
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: