SOLR-2682: remove it from distributed code also

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1152530 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Koji Sekiguchi 2011-07-31 00:30:19 +00:00
parent 347308b845
commit 9fd0af75ff
1 changed files with 0 additions and 20 deletions

View File

@ -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) {
@ -477,10 +473,6 @@ public class FacetComponent extends SearchComponent
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
for (int i=0; i<facet_fields.size(); i++) {
@ -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);
}
}
/**