summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/Query.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-10-28 14:43:39 +0100
committerJon Bratseth <bratseth@verizonmedia.com>2019-10-28 14:43:39 +0100
commit7b9f05860e4906dc68a4bbd5d8382976eb720d74 (patch)
tree8d1ab52324858fc8b5f76d4f2779f380379f94ae /container-search/src/main/java/com/yahoo/search/Query.java
parentf55ece33c8f97ad8c51f58ebdfed15a7d95e89dc (diff)
Trace sources of query profile values
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 84827a46572..3dabf9bc649 100644
--- a/container-search/src/main/java/com/yahoo/search/Query.java
+++ b/container-search/src/main/java/com/yahoo/search/Query.java
@@ -482,14 +482,14 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
resolvedValue = requestProperty.getValue();
b.append(requestProperty.getKey());
- b.append("=");
+ b.append(": ");
b.append(resolvedValue); // (may be null)
b.append(" (");
if (profile != null && ! profile.isOverridable(new CompoundName(requestProperty.getKey()), requestProperties()))
- b.append("value from query profile - unoverridable, ignoring request value");
+ b.append("from query profile - unoverridable, ignoring request value");
else
- b.append("value from request");
+ b.append("from request");
b.append(")\n");
mentioned.add(requestProperty.getKey());
}
@@ -504,9 +504,9 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
}
private void appendQueryProfileProperties(CompiledQueryProfile profile, Set<String> mentioned, StringBuilder b) {
- for (Map.Entry<String,Object> property : profile.listValues(CompoundName.empty, requestProperties(), properties()).entrySet()) {
+ for (var property : profile.listValuesWithSources(CompoundName.empty, requestProperties(), properties()).entrySet()) {
if ( ! mentioned.contains(property.getKey()))
- b.append(property.getKey()).append("=").append(property.getValue()).append(" (value from query profile)\n");
+ b.append(property.getKey()).append(": ").append(property.getValue()).append("\n");
}
}