diff options
author | Olli Virtanen <olli.virtanen@oath.com> | 2019-04-02 11:47:20 +0200 |
---|---|---|
committer | Olli Virtanen <olli.virtanen@oath.com> | 2019-04-02 11:47:20 +0200 |
commit | 0537fc5024145cf383f9c76039cd26d739df8462 (patch) | |
tree | c96ef31e79cdf38966b0850ec6ad0a2ca00e238b /container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java | |
parent | e680e17b11b01ef67b96957fe852e3de5cbc050b (diff) |
Use sort data with java dispatcher
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java b/container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java index 1650494db3a..3bfb9089457 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/SearchInvoker.java @@ -1,7 +1,6 @@ // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.dispatch; -import com.yahoo.fs4.QueryPacket; import com.yahoo.search.Query; import com.yahoo.search.Result; import com.yahoo.search.dispatch.searchcluster.Node; @@ -31,14 +30,14 @@ public abstract class SearchInvoker extends CloseableInvoker { * nodes, the provided {@link Execution} may be used to retrieve document summaries required * for correct result windowing. */ - public Result search(Query query, QueryPacket queryPacket, Execution execution) throws IOException { - sendSearchRequest(query, queryPacket); + public Result search(Query query, Execution execution) throws IOException { + sendSearchRequest(query); Result result = getSearchResult(execution); setFinalStatus(result.hits().getError() == null); return result; } - protected abstract void sendSearchRequest(Query query, QueryPacket queryPacket) throws IOException; + protected abstract void sendSearchRequest(Query query) throws IOException; protected abstract Result getSearchResult(Execution execution) throws IOException; |