public function FacetapiLuceneapiAdapter::fetch in Facet API 6
Overrides the fetch() function, prepopulates the termFreqs cache by calling the facetapi_luceneapi_termfreqs_get() function.
File
- contrib/
facetapi_luceneapi/ facetapi_luceneapi.adapter.inc, line 160 - Classes used by the Facet API module.
Class
- FacetapiLuceneapiAdapter
- Facet API adapter for Search Lucene API modules.
Code
public function fetch(array $facet) {
$term = new Zend_Search_Lucene_Index_Term(NULL, $facet['field']);
facetapi_luceneapi_termfreqs_get($this
->getSearcher(), $term);
return parent::fetch($facet);
}