Skip to content

Add option to not write the content of the id property into the stored document #2364

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

Closed
sothawo opened this issue Nov 17, 2022 · 0 comments · Fixed by #2438
Closed

Add option to not write the content of the id property into the stored document #2364

sothawo opened this issue Nov 17, 2022 · 0 comments · Fixed by #2438
Assignees
Labels
type: enhancement A general enhancement

Comments

@sothawo
Copy link
Collaborator

sothawo commented Nov 17, 2022

Currently the value of the id property not only is used to set the _id in Elasticsearch but also is written in the source document itself. It should be possible to disable this.

This might be added to the @Document annotation, the @Id annotation cannot be changed as it's coming from spring-data-commons.

@sothawo sothawo added the type: enhancement A general enhancement label Nov 17, 2022
@sothawo sothawo self-assigned this Jan 29, 2023
sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this issue Jan 29, 2023
sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this issue Jan 29, 2023
sothawo added a commit that referenced this issue Jan 29, 2023
@sothawo sothawo added this to the 5.1 M1 (2023.0.0) milestone Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant