aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-03-22 17:05:02 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2023-03-22 17:05:02 +0100
commit62ea7837b3b15894198e55e10c646b647cef6fbb (patch)
tree0e71718593ceb6b22e1b8ae4228dfea7bbd5a0ae /container-search/src/main/java/com/yahoo
parent13c3b915af3b8d5f0e66af52aee7e02c4abde0c2 (diff)
Add test showing behaviour when using 0
Diffstat (limited to 'container-search/src/main/java/com/yahoo')
-rw-r--r--container-search/src/main/java/com/yahoo/search/result/Coverage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/result/Coverage.java b/container-search/src/main/java/com/yahoo/search/result/Coverage.java
index 2688e706d5a..cd0e5acc96a 100644
--- a/container-search/src/main/java/com/yahoo/search/result/Coverage.java
+++ b/container-search/src/main/java/com/yahoo/search/result/Coverage.java
@@ -10,6 +10,7 @@ package com.yahoo.search.result;
public class Coverage extends com.yahoo.container.handler.Coverage {
public Coverage(long docs, long active) {
+ // TODO Wonder about this special handling.....
this(docs, active, (docs > 0) ? 1 : 0, (docs > 0) ? 1: 0);
}