Do not distribute null
@@ -40,11 +40,13 @@ public abstract class AbstractSearchCluster extends AbstractConfigProducer
for (RankingConstant constant : sds.getSearchDefinition().getSearch().getRankingConstants().values()) {
FileReference reference = (constant.getPathType() == RankingConstant.PathType.FILE)
? FileSender.sendFileToServices(constant.getFileName(), backends)
- : FileSender.sendUriToServices(constant.getUri(), backends);;
+ : FileSender.sendUriToServices(constant.getUri(), backends);
+ if (reference != null) {
constant.setFileReference(reference.value());
}
}
}
+ }
public static final class IndexingMode {
