lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsmi...@apache.org
Subject svn commit: r1659872 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/SpatialHeatmapFacets.java
Date Sun, 15 Feb 2015 02:18:14 GMT
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



Mime
View raw message