summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java b/container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java
index 75066a424fc..d017cce0d44 100644
--- a/container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/searcher/MultipleResultsSearcher.java
@@ -1,4 +1,4 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.searcher;
import com.yahoo.search.Query;
@@ -153,12 +153,9 @@ public class MultipleResultsSearcher extends Searcher {
Result result = execution.search(query);
// ensure that field sddocname is available
execution.fill(result); // TODO: Suffices to fill attributes
-
- if (result.hits().getErrorHit() != null)
- initialResult.hits().getErrorHit().addErrors(
- result.hits().getErrorHit());
-
-
+ if (initialResult != null) {
+ initialResult.hits().addErrorsFrom(result.hits());
+ }
return result;
}
}