diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-02-07 14:41:23 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-02-07 14:41:23 +0000 |
commit | 38b9963d438e0df02fabe2ba6ae2d98062859cc6 (patch) | |
tree | 1a1581d1a1a1dad4c4970920b020042f658b547e /config-model/src/main/java/com/yahoo/schema/RankProfile.java | |
parent | 48465f0011cf25f01524a3238678afa9fdf61857 (diff) |
add inputs as match features
Diffstat (limited to 'config-model/src/main/java/com/yahoo/schema/RankProfile.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/schema/RankProfile.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config-model/src/main/java/com/yahoo/schema/RankProfile.java b/config-model/src/main/java/com/yahoo/schema/RankProfile.java index 6d5202164dc..e413ac2a90e 100644 --- a/config-model/src/main/java/com/yahoo/schema/RankProfile.java +++ b/config-model/src/main/java/com/yahoo/schema/RankProfile.java @@ -1020,6 +1020,11 @@ public class RankProfile implements Cloneable { recorder.transform(globalPhaseRanking.function().getBody(), context); for (String input : needInputs) { System.err.println("need input => " + input); + try { + addMatchFeatures(new FeatureList(input)); + } catch (com.yahoo.searchlib.rankingexpression.parser.ParseException e) { + throw new IllegalArgumentException("invalid input in global-phase expression: "+input); + } } } } |