for (Map.Entry<String, FacetConfig> fEntry : summaryConfigValues.entrySet()) {
FacetConfig facetConfig = fEntry.getValue();
String facetFieldName = facetConfig.getIndexKey() +
SearchManager.FACET_FIELD_SUFFIX;
OrdinalsReader ordsReader = new DocValuesOrdinalsReader(facetFieldName);
Facets facets = new TaxonomyFacetCounts(ordsReader, taxonomyReader, facetConfiguration, facetCollector);
FacetResult facetResults = facets.getTopChildren(facetConfig.getMax(), facetFieldName); // facetConfig.getIndexKey()
if (facetResults != null) {
// Create the XML element for the response
String facetName = facetConfig.getPlural();
Element facetsSummaryElement = new Element(facetName);