diff options
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java b/config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java index 21aa5661fa4..85b8d7fbe79 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java @@ -675,7 +675,7 @@ public class RankProfile implements Cloneable { } public static class MutateOperation { - public enum Phase { onmatch, onrerank, onsummary} + public enum Phase { onmatch, on_first_phase, on_second_phase, onsummary} final Phase phase; final String attribute; final String operation; @@ -689,9 +689,9 @@ public class RankProfile implements Cloneable { public void addMutateOperation(MutateOperation.Phase phase, String attribute, String operation) { mutateOperations.add(new MutateOperation(phase, attribute, operation)); - //TODO once query control of these are gone we should change these to 'vespa.mutate.' - addRankProperty("vespa.execute." + phase + ".attribute", attribute); - addRankProperty("vespa.execute." + phase + ".operation", operation); + String prefix = "vespa.mutate." + phase.toString().replace('-', '_'); + addRankProperty(prefix + ".attribute", attribute); + addRankProperty(prefix + ".operation", operation); } public List<MutateOperation> getMutateOperations() { return mutateOperations; } |