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

[BUG] extra free-format type:object in index/create/delete operation #581

Closed
amberzsy opened this issue Sep 16, 2024 · 0 comments · Fixed by #582
Closed

[BUG] extra free-format type:object in index/create/delete operation #581

amberzsy opened this issue Sep 16, 2024 · 0 comments · Fixed by #582
Labels
bug Something isn't working untriaged

Comments

@amberzsy
Copy link
Contributor

What is the bug?

extra free-format type:object in multiple operation for bulk
example:
createOperation
deleteOperation
indexOperation

How can one reproduce the bug?

bulk request with "any_field_key"

{ "index" : { "_index" : "shuyi-index1", "_id" : "1" , "any_field_key": "any_file_value", "pipeline": "pipeline-1", "require_alias": false,  } }
{ "name" : "test_name" }

the request failed with unknown parameters.

What is the expected behavior?

for index/create/delete operation, the field is pre-defined and doesn't accept free-format any field name.
https://opensearch.org/docs/latest/api-reference/document-apis/bulk/

Do you have any screenshots?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
1 participant