Skip to content

Commit

Permalink
Fix CI tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Dec 12, 2023
1 parent eed448a commit c31fc58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ private static void reportClashingNodeAttribute(String attrName) {

@Override
public List<RescorerSpec<?>> getRescorers() {
if (enabled && machineLearningExtension.get().isLearningToRankEnabled()) {
if (enabled && machineLearningExtension.get() != null && machineLearningExtension.get().isLearningToRankEnabled()) {
return List.of(
new RescorerSpec<>(
LearningToRankRescorerBuilder.NAME,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,6 @@ protected XPackLicenseState getLicenseState() {
}

public static MachineLearning createTrialLicensedMachineLearning(Settings settings) {
MachineLearning plugin = new TrialLicensedMachineLearning(settings);
plugin.loadExtensions(null);
return plugin;
return new TrialLicensedMachineLearning(settings);
}
}

0 comments on commit c31fc58

Please sign in to comment.