From 3c1c7279dcadd59830f866bdef9220055c429af3 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Wed, 22 Apr 2015 04:25:13 +0000 Subject: [PATCH] SOLR-7440: DebugComponent does not return the right requestPurpose for pivot facet refinements git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1675258 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 3 +++ solr/core/src/java/org/apache/solr/util/SolrPluginUtils.java | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 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.java index 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 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.builder()