summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2023-01-12 22:13:12 +0100
committerJon Bratseth <bratseth@gmail.com>2023-01-12 22:13:12 +0100
commit2229a4d2e3141010850fa23f5ad731c9038052a8 (patch)
treed35ed23f65ef1ee793367e28450eda483372f031 /container-search
parent844eeeeebfd8cdffb28ee7d64e05a803aa2f0e5a (diff)
Parse tensor JSON values at root
Our current tensor JSON formats require a "blocks", "cells" or "values" key at the root, containing values in various forms. This adds support for skipping that extra level and adding content at the root, where the permissible content format depends on the tensor type, and matches the formats below "blocks", "cells" or "values" for the corresponding tensor types.
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/searcher/FieldCollapsingSearcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/searcher/FieldCollapsingSearcher.java b/container-search/src/main/java/com/yahoo/prelude/searcher/FieldCollapsingSearcher.java
index 54c46b34163..ead6ad53715 100644
--- a/container-search/src/main/java/com/yahoo/prelude/searcher/FieldCollapsingSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/searcher/FieldCollapsingSearcher.java
@@ -89,7 +89,7 @@ public class FieldCollapsingSearcher extends Searcher {
if (collapseField == null) return execution.search(query);
- int collapseSize = query.properties().getInteger(collapsesize,defaultCollapseSize);
+ int collapseSize = query.properties().getInteger(collapsesize, defaultCollapseSize);
query.properties().set(collapse, "0");
int hitsToRequest = query.getHits() != 0 ? (int) Math.ceil((query.getOffset() + query.getHits() + 1) * extraFactor) : 0;