Apache Lucene open-source search software
SOLR-7440: DebugComponent does not return the right requestPurpose for pivot facet refinements
Shalin Shekhar Mangar3c1c7279dcad
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 6124e306cec..c9fa7a9de00 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -150,6 +150,9 @@ Bug Fixes* SOLR-7443: Implemented range faceting over date fields in the new facet module(JSON Facet API). (yonik)+* SOLR-7440: DebugComponent does not return the right requestPurpose for pivot facet refinements.+ (shalin)+Optimizations----------------------diff --git a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.javaindex dc6a547a677..6e4afb6ee40 100644--- a/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java+++ b/solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java@@ -101,7 +101,6 @@ public class SolrPluginUtils {static {Map<Integer, String> map = new TreeMap<>();map.put(ShardRequest.PURPOSE_PRIVATE, "PRIVATE");- map.put(ShardRequest.PURPOSE_GET_TERM_STATS, "GET_TERM_STATS");map.put(ShardRequest.PURPOSE_GET_TOP_IDS, "GET_TOP_IDS");map.put(ShardRequest.PURPOSE_REFINE_TOP_IDS, "REFINE_TOP_IDS");map.put(ShardRequest.PURPOSE_GET_FACETS, "GET_FACETS");@@ -113,8 +112,10 @@ public class SolrPluginUtils {map.put(ShardRequest.PURPOSE_GET_TERMS, "GET_TERMS");map.put(ShardRequest.PURPOSE_GET_TOP_GROUPS, "GET_TOP_GROUPS");map.put(ShardRequest.PURPOSE_GET_MLT_RESULTS, "GET_MLT_RESULTS");+ map.put(ShardRequest.PURPOSE_REFINE_PIVOT_FACETS, "REFINE_PIVOT_FACETS");map.put(ShardRequest.PURPOSE_SET_TERM_STATS, "SET_TERM_STATS");- purposes = Collections.unmodifiableMap(map);+ map.put(ShardRequest.PURPOSE_GET_TERM_STATS, "GET_TERM_STATS");+ purposes = Collections.unmodifiableMap(map);}private static final MapSolrParams maskUseParams = new MapSolrParams(ImmutableMap.<String, String>builder()