if (handler == null) {
logger.error("facet handler: " + name + " is not defined, ignored.");
continue;
}
FacetHitCollector facetHitCollector = null;
RandomAccessFilter filter = null;
if (sel != null) {
filter = handler.buildFilter(sel);
}
if (ospec == null) {
if (filter != null) {
preFilterList.add(filter);
}
} else {
/*
* FacetSpec fspec = new FacetSpec(); // OrderValueAsc, fspec.setMaxCount(0);
* fspec.setMinHitCount(1); fspec.setExpandSelection(ospec.isExpandSelection());
*/
FacetSpec fspec = ospec;
facetHitCollector = new FacetHitCollector();
facetHitCollector.facetHandler = handler;
if (isDefaultSearch) {
facetHitCollector._collectAllSource = handler.getFacetCountCollectorSource(sel, fspec);
} else {