Skip to content

Commit 02436fa

Browse files
committed
Ignore 0 values in bitmapfreqfreq response
1 parent 126be11 commit 02436fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

solr/core/src/java/org/apache/solr/search/facet/FrequencyOfFrequenciesAgg.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ public Object getMergedResult() {
8080

8181
int[] lowFrequencies = result.decode();
8282
for (int i = 0; i < lowFrequencies.length; i++) {
83-
map.put(i, lowFrequencies[i]);
83+
int value = lowFrequencies[i];
84+
if (value > 0) {
85+
map.put(i, value);
86+
}
8487
}
8588

8689
result.getOverflow()

0 commit comments

Comments
 (0)