Skip to content

[DOCS] Add operation delete under the es.write.operation section #1959

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

Merged
merged 2 commits into from
May 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/src/reference/asciidoc/core/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ The write operation {eh} should perform - can be any of:
`create`;; adds new data - if the data already exists (based on its id), an exception is thrown.
`update`;; updates existing data (based on its id). If no data is found, an exception is thrown.
`upsert`;; known as _merge_ or insert if the data does not exist, updates if the data exists (based on its id).
`delete`;; deletes existing data (based on its id). If no data is found, an exception is thrown.
Copy link

@atomobianco atomobianco Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no data is found, an exception is thrown.

Maybe I am confusing what is meant with "data", but I am not getting an exception when deleting documents that are not in Elasticsearch.
Using "org.elasticsearch" %% "elasticsearch-spark-20" % 7.14.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS: Which to me is preferable (having no exceptions) so that I am not obliged to read ES before

This comment was marked as duplicate.

This comment was marked as outdated.


added[2.1]
`es.output.json` (default false)::
Expand Down