summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/Query.java
diff options
context:
space:
mode:
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.java5
1 files changed, 2 insertions, 3 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 3a2bccf017e..6930e648ffa 100644
--- a/container-search/src/main/java/com/yahoo/search/Query.java
+++ b/container-search/src/main/java/com/yahoo/search/Query.java
@@ -687,6 +687,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
public void attachContext(Query query) throws IllegalStateException {
query.getTrace().setLevel(getTrace().getLevel());
query.getTrace().setExplainLevel(getTrace().getExplainLevel());
+ query.getTrace().setProfileDepth(getTrace().getProfileDepth());
if (context == null) return;
if (query.getContext(false) != null) {
// If we added the other query's context info as a subnode in this
@@ -851,8 +852,7 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
public boolean equals(Object other) {
if (this == other) return true;
- if ( ! (other instanceof Query)) return false;
- Query q = (Query) other;
+ if ( ! (other instanceof Query q)) return false;
if (getOffset() != q.getOffset()) return false;
if (getHits() != q.getHits()) return false;
@@ -929,7 +929,6 @@ public class Query extends com.yahoo.processing.Request implements Cloneable {
/**
* Prepares this for binary serialization.
- *
* This must be invoked after all changes have been made to this query before it is passed
* on to a receiving backend. Calling it is somewhat expensive, so it should only happen once.
* If a prepared query is cloned, it stays prepared.