diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java index a41b7b1f583..a750898f00e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/search/ShardSearchFailure.java @@ -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; } /**