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

feat: add support for script and upsert on ES output #2135

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gfyrag
Copy link

@gfyrag gfyrag commented Sep 25, 2023

Add some capabilities to elasticsearch output :

  • Support for scripted update
  • Support for "upsert" in updates

The new behavior is enabled setting the property 'multipart' to true on the output.
Once the 'multipart' defined, 3 new fields are evaluated :

  • doc: replace the root
  • script: add the "script" field
  • upsert: add "upsert" field

See the documentation : https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-update.html#_literal_doc_as_upsert_literal

@gfyrag gfyrag marked this pull request as ready for review September 25, 2023 14:29
gfyrag added a commit to formancehq/stack that referenced this pull request Sep 26, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).
gfyrag added a commit to formancehq/stack that referenced this pull request Sep 26, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).
@gfyrag gfyrag force-pushed the feat/elaticsearch-improve-output branch from ccaf1da to 58c6184 Compare September 27, 2023 07:13
gfyrag added a commit to formancehq/stack that referenced this pull request Oct 2, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).
gfyrag added a commit to formancehq/stack that referenced this pull request Oct 13, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
gfyrag added a commit to formancehq/stack that referenced this pull request Oct 13, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
Signed-off-by: Geoffrey Ragot <geoffrey.ragot@gmail.com>
@flemzord flemzord force-pushed the feat/elaticsearch-improve-output branch from 58c6184 to 78ee7b3 Compare October 31, 2023 10:42
gfyrag added a commit to formancehq/stack that referenced this pull request Oct 31, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
gfyrag added a commit to formancehq/stack that referenced this pull request Oct 31, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
gfyrag added a commit to formancehq/stack that referenced this pull request Nov 9, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
gfyrag added a commit to formancehq/stack that referenced this pull request Nov 22, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
gfyrag added a commit to formancehq/stack that referenced this pull request Nov 22, 2023
Also simplifying ledger v1 streams using a new feature of benthos (redpanda-data/connect#2135).

todo: need to update benthos image in integration tests.
@gfyrag gfyrag force-pushed the feat/elaticsearch-improve-output branch from d9fcb91 to e213cc6 Compare January 26, 2024 08:04
Signed-off-by: Geoffrey Ragot <geoffrey.ragot@gmail.com>
@gfyrag gfyrag force-pushed the feat/elaticsearch-improve-output branch from e213cc6 to 77d1706 Compare February 13, 2024 09:15
@flemzord
Copy link
Contributor

flemzord commented Mar 6, 2024

Any news @Jeffail ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants