-
Notifications
You must be signed in to change notification settings - Fork 1.3k
update document partially by specified entity #2304
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
Labels
type: enhancement
A general enhancement
Milestone
Comments
5 tasks
5 tasks
Have to reopen; I noticed, that the PR was targeting the wrong branch. Can you please create a new PR with the changes - then with what I commented and target the |
5 tasks
Sorry for the wrong branch, and i'll polish and reopen a PR for |
submited: #2310 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now if we wanna update a document, a UpdateQuery must be constructed manually, but this is a little unnecessary. Especially for the condation that:
Problems are:
save(ENTITY)
, values of fields which are unmapped in the entity will be discarded;update(UpdateQuery, IndexCoordinates)
, a UpdateQuery and a IndexCoordinates must be constructed manually;So i think
update(T entity)
is necessary, and spring-data-elasticsearch can construct the UpdateQuery and IndexCoordinates automatically, which is very handy.The text was updated successfully, but these errors were encountered: