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

[Feature Request] Option to disable automatic ID generation #16939

Open
eusousu opened this issue Jan 3, 2025 · 1 comment
Open

[Feature Request] Option to disable automatic ID generation #16939

eusousu opened this issue Jan 3, 2025 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@eusousu
Copy link

eusousu commented Jan 3, 2025

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

@eusousu eusousu added enhancement Enhancement or improvement to existing feature or request untriaged labels Jan 3, 2025
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Jan 3, 2025
@soosinha
Copy link
Member

soosinha commented Jan 6, 2025

[Triage - attendees 1 2 3 4]
Thanks for the proposal. We would welcome a PR for this.

@soosinha soosinha removed the untriaged label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

2 participants