summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-25 10:58:00 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2021-10-25 11:01:02 +0200
commite1abecd7a786c78a4d4c233a5440302a30454b98 (patch)
treeece1836ca13e66e4a4c26a2792808ee3c8846ef3 /config-model/src/main/java/com
parent85c88300cdab6541fea85cb69a7b4f844bb91250 (diff)
onrerank -> on-first-phase and add on-second-phase
Diffstat (limited to 'config-model/src/main/java/com')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/RankProfile.java8
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; }