You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2015/02/15 03:18:14 UTC
svn commit: r1659872 -
/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
Author: dsmiley
Date: Sun Feb 15 02:18:13 2015
New Revision: 1659872
URL: http://svn.apache.org/r1659872
Log:
SOLR-7005: don't add facet.heatmap.format=png to shard requests unless heatmaps are in use
Not a bug; just a small cleanup.
Modified:
lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java?rev=1659872&r1=1659871&r2=1659872&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java Sun Feb 15 02:18:13 2015
@@ -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