Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2682: remove it from distributed code also

Koji Sekiguchi9fd0af75ff38
diff --git a/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java b/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java
index ffe51a81b47..ebf57347842 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java
@@ -289,10 +289,6 @@ public class FacetComponent extends SearchComponent
int shardNum = rb.getShardNum(srsp.getShard());
NamedList facet_counts = (NamedList)srsp.getSolrResponse().getResponse().get("facet_counts");
- @SuppressWarnings("unchecked")
- List<String> excepts = (List<String>)facet_counts.get("exception");
- fi.addExceptions(excepts);
-
// handle facet queries
NamedList facet_queries = (NamedList)facet_counts.get("facet_queries");
if (facet_queries != null) {
@@ -476,10 +472,6 @@ public class FacetComponent extends SearchComponent
// int shardNum = rb.getShardNum(srsp.shard);
NamedList facet_counts = (NamedList)srsp.getSolrResponse().getResponse().get("facet_counts");
NamedList facet_fields = (NamedList)facet_counts.get("facet_fields");
-
- @SuppressWarnings("unchecked")
- List<String> excepts = (List<String>)facet_counts.get("exception");
- fi.addExceptions(excepts);
if (facet_fields == null) continue; // this can happen when there's an exception
@@ -511,10 +503,6 @@ public class FacetComponent extends SearchComponent
NamedList<Object> facet_counts = new SimpleOrderedMap<Object>();
- if (fi.exceptionList != null) {
- facet_counts.add("exception",fi.exceptionList);
- }
-
NamedList<Number> facet_queries = new SimpleOrderedMap<Number>();
facet_counts.add("facet_queries",facet_queries);
for (QueryFacet qf : fi.queryFacets.values()) {
@@ -635,8 +623,6 @@ public class FacetComponent extends SearchComponent
public SimpleOrderedMap<SimpleOrderedMap<Object>> rangeFacets
= new SimpleOrderedMap<SimpleOrderedMap<Object>>();
- public List<String> exceptionList;
-
void parse(SolrParams params, ResponseBuilder rb) {
queryFacets = new LinkedHashMap<String,QueryFacet>();
facets = new LinkedHashMap<String,DistribFieldFacet>();
@@ -658,12 +644,6 @@ public class FacetComponent extends SearchComponent
}
}
}
-
- public void addExceptions(List<String> exceptions) {
- if (exceptions == null) return;
- if (exceptionList == null) exceptionList = new ArrayList<String>();
- exceptionList.addAll(exceptions);
- }
}
/**