summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-09-18 19:40:37 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-09-18 19:40:37 +0200
commit94e11577a49ae35965e8fc11e8203aec51024930 (patch)
tree44d67ac6c76c3f3f82edd6b37e8fdbc09947e16a /container-search
parent4c58c8e3ca5a19b8f9294d5cbdb50bdf15e6b87d (diff)
Protobuf, unless dispatch.summaries
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java b/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java
index 54c61881c47..d9a76965c3e 100644
--- a/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java
+++ b/container-search/src/main/java/com/yahoo/search/dispatch/rpc/RpcInvokerFactory.java
@@ -46,8 +46,9 @@ public class RpcInvokerFactory extends InvokerFactory implements PingFactory {
boolean summaryNeedsQuery = searcher.summaryNeedsQuery(query);
boolean useProtoBuf = query.properties().getBoolean(Dispatcher.dispatchProtobuf, dispatchWithProtobuf);
+ boolean useDispatchDotSummaries = query.properties().getBoolean(dispatchSummaries, false);
- return ((query.properties().getBoolean(dispatchSummaries, true) || !useProtoBuf) && ! summaryNeedsQuery)
+ return ((useDispatchDotSummaries || !useProtoBuf) && ! summaryNeedsQuery)
? Optional.of(new RpcFillInvoker(rpcResourcePool, searcher.getDocumentDatabase(query)))
: Optional.of(new RpcProtobufFillInvoker(rpcResourcePool, searcher.getDocumentDatabase(query), searcher.getServerId(), summaryNeedsQuery));
}