From 09e000c9cde9943232098f02aec7f51961686860 Mon Sep 17 00:00:00 2001 From: Arne H Juul Date: Fri, 21 Jan 2022 13:39:18 +0000 Subject: let us not have too many tuning parameters yet --- .../src/main/java/com/yahoo/search/rendering/JsonRenderer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java b/container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java index a2d9e78b37f..157223c110c 100644 --- a/container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java +++ b/container-search/src/main/java/com/yahoo/search/rendering/JsonRenderer.java @@ -77,9 +77,7 @@ import static com.fasterxml.jackson.databind.SerializationFeature.FLUSH_AFTER_WR public class JsonRenderer extends AsynchronousSectionedRenderer { private static final CompoundName WRAP_DEEP_MAPS = new CompoundName("renderer.json.jsonMaps"); - private static final CompoundName WRAP_MAPS_ALL = new CompoundName("renderer.json.jsonMapsAll"); private static final CompoundName WRAP_WSETS = new CompoundName("renderer.json.jsonWsets"); - private static final CompoundName WRAP_WSETS_ALL = new CompoundName("renderer.json.jsonWsetsAll"); private static final CompoundName DEBUG_RENDERING_KEY = new CompoundName("renderer.json.debug"); private static final CompoundName JSON_CALLBACK = new CompoundName("jsoncallback"); private static final CompoundName TENSOR_FORMAT = new CompoundName("format.tensors"); @@ -229,8 +227,9 @@ public class JsonRenderer extends AsynchronousSectionedRenderer { fieldConsumerSettings.debugRendering = props.getBoolean(DEBUG_RENDERING_KEY, false); fieldConsumerSettings.jsonDeepMaps = props.getBoolean(WRAP_DEEP_MAPS, false); fieldConsumerSettings.jsonWsets = props.getBoolean(WRAP_WSETS, false); - fieldConsumerSettings.jsonMapsAll = props.getBoolean(WRAP_MAPS_ALL, false); - fieldConsumerSettings.jsonWsetsAll = props.getBoolean(WRAP_WSETS_ALL, false); + // we may need more fine tuning, but for now use the same query parameters here: + fieldConsumerSettings.jsonMapsAll = props.getBoolean(WRAP_DEEP_MAPS, false); + fieldConsumerSettings.jsonWsetsAll = props.getBoolean(WRAP_WSETS, false); fieldConsumerSettings.tensorShortForm = (props.get(TENSOR_FORMAT) != null && props.getString(TENSOR_FORMAT).equalsIgnoreCase("short")); } -- cgit v1.2.3