Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Apr 23, 2024
1 parent 9968eea commit 6e2ddf8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.apache.lucene.util.SetOnce;
import org.elasticsearch.TransportVersion;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.common.Strings;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.index.query.QueryRewriteContext;
Expand Down Expand Up @@ -66,7 +65,7 @@ public static LearningToRankRescorerBuilder fromXContent(XContentParser parser,
Map<String, Object> params,
LearningToRankService learningToRankService
) {
this.modelId = Strings.requireNonBlank(modelId, "modelId can't be blank");
this.modelId = modelId;
this.params = params;
this.learningToRankConfig = learningToRankConfig;
this.learningToRankService = learningToRankService;
Expand Down

0 comments on commit 6e2ddf8

Please sign in to comment.