aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/searcher
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-01-20 08:54:29 +0000
committerArne H Juul <arnej@yahooinc.com>2022-01-20 08:54:29 +0000
commitf94e8b056befca8c6c1d189e1b1fb6a156f89624 (patch)
treeaaec23021526f0019c79afbf2c7690e9b75f3212 /container-search/src/main/java/com/yahoo/prelude/searcher
parent15040f5d9099587e2a766032e73ff100c934ba8f (diff)
deprecate Execution.fillAttributes()
* we want to make some slight changes here for Vespa 8, and hopefully get rid of this completely for Vespa 9. Prepare for this by marking the old method (and public constant) as deprecated, and explain what should be used instead.
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/searcher')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/searcher/BlendingSearcher.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/searcher/BlendingSearcher.java b/container-search/src/main/java/com/yahoo/prelude/searcher/BlendingSearcher.java
index 932f4ea7c38..5dcd591b1fc 100644
--- a/container-search/src/main/java/com/yahoo/prelude/searcher/BlendingSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/searcher/BlendingSearcher.java
@@ -8,6 +8,7 @@ import com.yahoo.component.chain.dependencies.After;
import com.yahoo.component.chain.dependencies.Before;
import com.yahoo.component.chain.dependencies.Provides;
import com.yahoo.container.QrSearchersConfig;
+import com.yahoo.prelude.fastsearch.VespaBackEndSearcher;
import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.Searcher;
@@ -113,7 +114,8 @@ public class BlendingSearcher extends Searcher {
private Result sortAndTrimResults(Result result, Query q, int offset, int hits, Execution execution) {
if (q.getRanking().getSorting() != null) {
- execution.fillAttributes(result); // Always correct as we can only sort on attributes
+ // TODO: remove or rename this internal summary class for Vespa 9
+ execution.fill(result, VespaBackEndSearcher.SORTABLE_ATTRIBUTES_SUMMARY_CLASS);
result.hits().sort();
}
result.hits().trim(offset, hits);