You are here

public function ApacheSolrFacetapiAdapter::searchExecuted in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/adapter.inc \ApacheSolrFacetapiAdapter::searchExecuted()
  2. 7 plugins/facetapi/adapter.inc \ApacheSolrFacetapiAdapter::searchExecuted()

Returns a boolean flagging whether $this->_searcher executed a search.

1 call to ApacheSolrFacetapiAdapter::searchExecuted()
ApacheSolrFacetapiAdapter::suppressOutput in plugins/facetapi/adapter.inc
Suppress output of the realm

File

plugins/facetapi/adapter.inc, line 56
Classes used by the Facet API module.

Class

ApacheSolrFacetapiAdapter
Facet API adapter for the Apache Solr Search Integration module.

Code

public function searchExecuted() {

  // Initial check - has ANY solr query run in our environment.
  $env_id = $this->info['instance'];
  $this_has_searched = apachesolr_has_searched($env_id);

  // Secondary check - do we have results for this searcher?
  $this_has_searched = $this_has_searched && apachesolr_static_response_cache($this
    ->getSearcher());
  return $this_has_searched;
}