Fix NullPointerException when search request partially fails on one or more shards
This commit is contained in:
parent
72ee0aaee7
commit
bae67ca808
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue