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

Fix buildage #2611

Merged
merged 2 commits into from
Mar 31, 2025
Merged

Fix buildage #2611

merged 2 commits into from
Mar 31, 2025

Conversation

picandocodigo
Copy link
Member

No description provided.

The API now makes a request, instead of calling index like in previous versions (< 9.0.0).
* `body`, `index` and `id` are now required parameters.
* `op_type` is now a String parameter: Set to 'create' to only index the document if it does not
already exist (put if absent). If a document with the specified '_id' already exists, the indexing
operation will fail. The behavior is the same as using the '<index>/_create' endpoint. If a document
ID is specified, this paramater defaults to 'index'. Otherwise, it defaults to `create`. If the
request targets a data stream, an `op_type` of `create` is required.

Additional new parameters:
* :if_primary_term (Integer) -  Only perform the operation if the document has this primary term.
* :if_seq_no (Integer) - Only perform the operation if the document has this sequence number.
@picandocodigo picandocodigo merged commit d06e7ff into main Mar 31, 2025
11 of 13 checks passed
@picandocodigo picandocodigo deleted the fix_buildage branch March 31, 2025 15:54
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.

1 participant