The Facet API module provides an API function that retrieves enabled facets for a searcher. Using it would simplify the code in apachesolr_stats_get_facets(), and it would also run more efficiently as the API function returns the info from cache as opposed to invoking the hooks directly which tends to be a pretty expensive process.

Comments

cpliakas’s picture

Status: Active » Needs review

The attached patch leverages the facetapi_get_enabled_facets() API function.

Thanks,
Chris

cpliakas’s picture

StatusFileSize
new1.38 KB

And ... the patch :-)

cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.