@Override
public void run() {
try {
if(shardFailures != null && shardFailures.length() > 0){
FailedShardsException ex = new FailedShardsException(shardFailures.toArray(
new ShardSearchFailure[shardFailures.length()]));
result.setException(ex);
return;
}
InternalSearchResponse response = searchPhaseController.merge(sortedShardList, firstResults, fetchResults);