SOLR-7005: don't add facet.heatmap.format=png to shard requests unless heatmaps are in use

Not a bug; just a small cleanup.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1659872 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2015-02-15 02:18:13 +00:00
parent 02a391b284
commit 59769898df
1 changed files with 2 additions and 4 deletions

View File

@ -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