Skip to content

Apache Lucene open-source search software

SOLR-7005: don't add facet.heatmap.format=png to shard requests unless heatmaps are in use Not a bug; just a small cleanup.

David Wayne Smiley59769898df4f
diff --git a/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java b/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
index 90abecfb54f..decec580a9f 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
@@ -287,11 +287,9 @@ public class SpatialHeatmapFacets {
sreq.params.set("f." + key + "." + pname, pval);
}
}
- // Remove existing format specifier
- sreq.params.remove("f." + key + "." + FacetParams.FACET_HEATMAP_FORMAT);
+ // Set format to PNG; it's the only one we parse
+ sreq.params.set("f." + key + "." + FacetParams.FACET_HEATMAP_FORMAT, FORMAT_PNG);
}
- // Set format to PNG (applies to all heatmaps)
- sreq.params.set(FacetParams.FACET_HEATMAP_FORMAT, FORMAT_PNG);
}
/** Called by FacetComponent.countFacets which is in turn called by FC's impl of