Fix NullPointerException when search request partially fails on one or more shards

This commit is contained in:
Igor Motov 2011-06-23 10:51:12 -04:00 committed by kimchy
parent 72ee0aaee7
commit bae67ca808
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ public class ShardSearchFailure implements ShardOperationFailedException {
public ShardSearchFailure(String reason, SearchShardTarget shardTarget) {
this.shardTarget = shardTarget;
this.reason = reason;
this.status = RestStatus.INTERNAL_SERVER_ERROR;
}
/**