-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add routing parameter to ElasticsearchOperations [DATAES-644] #1218
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
sothawo commented This supersedes DATAES-439 as I do not think that having a So tying the routing to a document helps in indexing, on updating or deleting it is error-prone if the routing property of the document is changed and for getting there normally is no document to be passed in and the routing must be provided in a different way. So I think we should look for a solution how to provide the routing information to all these calls in a common way |
wangqinghuan commented Sorry, I ignored find and delete case. The |
sothawo commented wangqinghuan: thanks for your contribution. I agree in all cases where we can provide an entity like in index, update, delete; Adding overloaded methods with WithRouting is a solution, but we have to check how this fits not only to the I'll have a call with the Spring Data project lead later this week, we'll discuss this then. What you could do in the meantime:
|
sothawo commented Hello, I had a call with the Spring Data Project Lead last week, we also discussed the topic of this issue. Let me shortly summarize this:
I think I will have time on Monday evening (central european time) to elaborate on the last point and show you will sample code what we mean and how this can be implemented |
sothawo commented Routing definition Let me outline the idea for defining the routing for an object:
What can the RoutingAccessor do?
What could be done additionally?
|
utkarshupendra commented Landed here from a related google search. Is this being worked upon currently? I see that the PR is closed and sothawo has added the outline of the idea to define routing, however, I am not sure if this has been implemented as a part of a separate thread. Can someone please confirm? |
sothawo commented No, this is still an open issue |
sothawo opened DATAES-644 and commented
The
IndexRequest
should be able to be configure with a routing argument (Update, delete and search requests as well)Issue Links:
@Routing
annotation("supersedes")
Referenced from: pull request #562
3 votes, 6 watchers
The text was updated successfully, but these errors were encountered: