Routing: When specify in the mapping _routing required, a delete without explicit routing value should automatically be broadcasted to all shards, closes #522.

This commit is contained in:
kimchy 2010-11-16 18:31:43 +02:00
parent a04d8ec5ad
commit 619efea940
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ public class TransportDeleteAction extends TransportShardReplicationOperationAct
if (request.routing() == null) {
indexDeleteAction.execute(new IndexDeleteRequest(request), new ActionListener<IndexDeleteResponse>() {
@Override public void onResponse(IndexDeleteResponse indexDeleteResponse) {
// TODO what do we do with specific failed shards?
listener.onResponse(new DeleteResponse(request.index(), request.type(), request.id()));
}