aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/Query.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-03-29 09:29:36 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2023-03-29 09:29:36 +0200
commit66a521195313c4bb7bb24616667be426c946327f (patch)
treed7856e91f237ea85452b14460e6d7805cf363196 /container-search/src/main/java/com/yahoo/search/Query.java
parentf40248518010e55335925d13aeb5539da441fa78 (diff)
Stay with from.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/Query.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/Query.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/Query.java b/container-search/src/main/java/com/yahoo/search/Query.java
index b0023260f67..39fd372d2a7 100644
--- a/container-search/src/main/java/com/yahoo/search/Query.java
+++ b/container-search/src/main/java/com/yahoo/search/Query.java
@@ -445,8 +445,8 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
if (field.getType() == FieldType.genericQueryProfileType) { // Generic map
String fullName = append(prefix, field.getCompoundName().toString());
- for (Map.Entry<String, Object> entry : originalProperties.listProperties(CompoundName.of(fullName), context).entrySet()) {
- properties().set(CompoundName.of(append(fullName, entry.getKey())), entry.getValue(), context);
+ for (Map.Entry<String, Object> entry : originalProperties.listProperties(CompoundName.from(fullName), context).entrySet()) {
+ properties().set(CompoundName.from(append(fullName, entry.getKey())), entry.getValue(), context);
}
}
else if (field.getType() instanceof QueryProfileFieldType) { // Nested arguments
@@ -455,7 +455,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
else {
CompoundName fullName = prefix.isEmpty()
? field.getCompoundName()
- : CompoundName.of(append(prefix, field.getCompoundName().toString()));
+ : CompoundName.from(append(prefix, field.getCompoundName().toString()));
Object value = originalProperties.get(fullName, context);
if (value != null) {
properties().set(fullName, value, context);
@@ -470,11 +470,11 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
for (var entry : entrySet) {
if (ignoreSelect && entry.getKey().equals(Select.SELECT)) continue;
if (RankFeatures.isFeatureName(entry.getKey())) continue; // Set these last
- properties.set(CompoundName.of(entry.getKey()), entry.getValue(), requestMap);
+ properties.set(CompoundName.from(entry.getKey()), entry.getValue(), requestMap);
}
for (var entry : entrySet) {
if ( ! RankFeatures.isFeatureName(entry.getKey())) continue;
- properties.set(CompoundName.of(entry.getKey()), entry.getValue(), requestMap);
+ properties.set(CompoundName.from(entry.getKey()), entry.getValue(), requestMap);
}
}