-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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_duplicates option for append processor #61916
Allow_duplicates option for append processor #61916
Conversation
Pinging @elastic/es-core-features (:Core/Features/Ingest) |
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
1 similar comment
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @danhermann!
I left one super minor nit, you can skip it if you want
List.of(new UppercaseProcessor("_tag_upper", null, "_ingest._value", false, "_ingest._value")), | ||
List.of(new AppendProcessor("_tag", null, template, (model) -> (Collections.singletonList("added")), true)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd stick with Collections.singletonList
just for the sake of backporting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Java8-compatible implementations of List
, Set
, and Map
in the collect package make these backports pretty easy.
Thanks for the review, @probakowski! |
* Support allow_duplicates on append processor Related to elastic/elasticsearch#61916
* Support allow_duplicates on append processor Related to elastic/elasticsearch#61916
* Support allow_duplicates on append processor Related to elastic/elasticsearch#61916 (cherry picked from commit 2b75c5e)
* Support allow_duplicates on append processor Related to elastic/elasticsearch#61916 Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
* Support allow_duplicates on append processor Related to elastic/elasticsearch#61916 (cherry picked from commit 2b75c5e)
Adds an
allow_duplicates
option to the append processor. When set tofalse
, any of the values to be appended that are already present in the target field will be ignored. Defaults totrue
to preserve existing behavior.Closes #57543