aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2020-08-05 12:04:41 +0200
committerJon Bratseth <bratseth@gmail.com>2020-08-05 12:04:41 +0200
commit3ef825fc121ab64c2ae643f4a86445e449dfef49 (patch)
tree9068636396146f5178a588e603425c953eb9ba42 /container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java
parent75b7675c38fddf27daf17bcb46fc575d8dc8049e (diff)
Remove incorrect provenance info
When we combine all resolutions of some value the provenance information carried by the value becomes ptoentially incorrect. Since we do this for efficiency and tracking provenance info is just helper functionality, we remove the provenance info in these cases.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java b/container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java
index c6b0f4a533b..d3abbbe4097 100644
--- a/container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java
+++ b/container-search/src/main/java/com/yahoo/search/query/profile/compiled/CompiledQueryProfile.java
@@ -180,6 +180,8 @@ public class CompiledQueryProfile extends AbstractComponent implements Cloneable
public final Object get(CompoundName name, Map<String, String> context, Properties substitution) {
ValueWithSource value = entries.get(name, context);
if (value == null) return null;
+ if (name.last().equals("streams"))
+ System.out.println(value);
return substitute(value.value(), context, substitution);
}