add routing to delete by query rest endpoint

This commit is contained in:
kimchy 2010-11-18 13:46:45 +02:00
parent cf4f6decc4
commit 16ed69daa3
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public class RestDeleteByQueryAction extends BaseRestHandler {
deleteByQueryRequest.types(splitTypes(request.param("type")));
deleteByQueryRequest.timeout(request.paramAsTime("timeout", ShardDeleteByQueryRequest.DEFAULT_TIMEOUT));
deleteByQueryRequest.routing(request.param("routing"));
String replicationType = request.param("replication");
if (replicationType != null) {
deleteByQueryRequest.replicationType(ReplicationType.fromString(replicationType));