Skip to content

Use index operation instead of create #130

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Yutsa
Copy link

@Yutsa Yutsa commented Sep 9, 2024

Using the index operation instead of create allows the omission of the ID field.

This makes the listener work with ES > 5.0

Édouard WILLISSECK and others added 2 commits September 9, 2024 17:34
Using index instead of create allows to not specify an ID
Using the index operation instead of create allows the omission of the ID field.
Édouard WILLISSECK added 2 commits September 10, 2024 16:29
The method checking the version was doing a check on
a "distribution" element that was not always there.

However it didn't handle the case where it was not there
and defaulted to version "-1".
@Alexadra
Copy link

Alexadra commented Nov 8, 2024

Thanks @Yutsa . Your fix helped a lot for integration with OpenSearch!

@Spoonsk
Copy link

Spoonsk commented Feb 18, 2025

@Yutsa - The issue with changing the operation to index is that it breaks functionality for DataStream type indexes when using Elastic Elasticsearch. The op change to create from index was made to help work around this bug.

We may need a configuration option that allows the user that is using the tool to determine whether they want to use a create or an index operation.

Another option might be to make this value dynamic dependent on the distribution - use index if opensearch and create if elasticsearch

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.

3 participants