Skip to content

Commit

Permalink
Parent was ignored in exists request
Browse files Browse the repository at this point in the history
The routing was always set to null right after the parent was set.

Closes elastic#3276
  • Loading branch information
Luca Cavanna committed Jul 1, 2013
1 parent 8786f60 commit 3403d72
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,8 +51,8 @@ public void handleRequest(final RestRequest request, final RestChannel channel)
getRequest.listenerThreaded(false);
getRequest.operationThreaded(true);
getRequest.refresh(request.paramAsBoolean("refresh", getRequest.refresh()));
getRequest.routing(request.param("routing")); // order is important, set it after routing, so it will set the routing
getRequest.parent(request.param("parent"));
getRequest.routing(request.param("routing"));
getRequest.preference(request.param("preference"));
getRequest.realtime(request.paramAsBooleanOptional("realtime", null));
// don't get any fields back...
Expand Down

0 comments on commit 3403d72

Please sign in to comment.