You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this we need to introduce something like a IdWithRouting which contains an id and a routing value and add the possibility to set these on a Query. When building the request these values can then be used to build the get request with different routing values for the ids.
Multiget doesn't support different routing for each id
public Flux<MultiGetItem> multiGet(Query query, Class clazz, IndexCoordinates index)
-->
private List<MultiGetRequest.Item> getMultiRequestItems(Query searchQuery, Class<?> clazz, IndexCoordinates index)
Currently is only possible to set same routing for all ids
GET index-search/_mget
{
"docs": [
{
"_type": "_doc",
"_id": "xxxx",
"routing": "routingForXXXX, routingForYYYY"
},
{
"_type": "_doc",
"_id": "yyyy",
"routing": "routingForXXXX, routingForYYYY"
]
}
Should be possible to set different routing for each id
GET index-search/_mget
{
"docs": [
{
"_type": "_doc",
"_id": "xxxx",
"routing": "routingForXXX"
},
{
"_type": "_doc",
"_id": "yyyy",
"routing": "routingForYYYY"
]
}
The text was updated successfully, but these errors were encountered: