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

Cannot add metadata "version" to OpenSearchDocumentStore #5112

Closed
1 task done
tstadel opened this issue Jun 9, 2023 · 0 comments · Fixed by #5113
Closed
1 task done

Cannot add metadata "version" to OpenSearchDocumentStore #5112

tstadel opened this issue Jun 9, 2023 · 0 comments · Fixed by #5113
Assignees

Comments

@tstadel
Copy link
Member

tstadel commented Jun 9, 2023

Describe the bug
When adding documents with metadata field "version" to OpenSearchDocumentStore we get HTTP 400.

Error message

'Exception while running node 'DocumentStore': RequestError(400, 'action_request_validation_exception', 'Validation Failed: 1: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;2: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;3: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;4: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;5: internal versioning can not be used for optimistic concurrency control. Please use `if_seq_no` and `if_primary_term` instead;6: internal versioning can not be used for optimistic concurre
...

Expected behavior
We can add metadata field "version".

Additional context
Looking into the the client code, ElasticSearchDocumentStore has the same issue.

To Reproduce
Create document with meta field "version" and run OpenSearchDocumentStore.write_documents().

FAQ Check

System:

  • OS:
  • GPU/CPU:
  • Haystack version (commit or version number): 1.17.1
  • DocumentStore: OpenSearchDocumentStore
  • Reader:
  • Retriever:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants