Skip to content

Fix store null values implementation. #2841

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

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

sothawo
Copy link
Collaborator

@sothawo sothawo commented Jan 31, 2024

The new Elasticsearch Java client did not keep null values when writing the data to Elasticsearch (the old client did). As Spring Data Elasticsearch only adds null valued fields that are explicitly marked to be stored this way this change broke the expected behaviour.

This PR changes the configuration of the object mapper used by the Elasticsearch client to write null values.

Closes #2839

@sothawo sothawo merged commit 0a1e205 into spring-projects:main Jan 31, 2024
sothawo added a commit to sothawo/spring-data-elasticsearch that referenced this pull request Jan 31, 2024
Original Pull Request spring-projects#2841
Closes spring-projects#2839

(cherry picked from commit 0a1e205)
@sothawo sothawo deleted the #2839-store-null-values branch February 6, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

storeNullValue doesn't work since 5.0
1 participant