-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Incorrect Update API Path #2276
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
Comments
Please provide a runnable code/ minimal project that demonstrates this error. |
From org.springframework.data.elasticsearch.client.util.RequestConverters.update(UpdateRequest updateRequest) Below is the code snippet. This is causing the error, the endpoint generated is incorrect. Code FIX (Suggestion, Please review & test before accepting) :P: |
Seems no one else up to now used update with the reactive implementation, thanks for bringing this For the reactive client implementation up to version 4.4 we needed to copy code from the Elasticsearch library (it was still allowed at that time). This copied code was not adapted when in version 7 the |
@sothawo |
It will be in the next major release as well in the next bugfix releases for 4.4 and 4.3. |
Spring Boot Version: 2.7.3 (Issue exists in 2.7.2, tried in that)
Elasticsearch Server Version: 8.1.2
The update path that spring data elastic search uses is:
POST /index/_doc/{docId}/_update
which gives error: no handler found for uri
Instead the path should be:
POST /index/_update/{docId}
Please fix this. I've to do a lot of workarounds to fix it.
The text was updated successfully, but these errors were encountered: