[Feature Request] Option to disable automatic ID generation #16939
Labels
enhancement
Enhancement or improvement to existing feature or request
Indexing
Indexing, Bulk Indexing and anything related to indexing
Is your feature request related to a problem? Please describe
When indexing a document OpenSearch has the option to perform a POST to the index/_doc API for creating it, automatically generating an document ID if not informed.
It would be useful for my use case to have a configuration option to disable it, making so the only option is to explicitly inform a document ID when creating (maybe by disabling POST to index/_doc)
Describe the solution you'd like
Similar to the option "action.auto_create_index=false" there could be a "action.auto_generate_document_id=false" that disables the auto creation of the index when it does not exists as it would help to enforce this rule on the cases that need it, avoiding errors (by mistake or honest forgetting) and replication of logic (on the case of multiple sender client applications)
Related component
Indexing
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: