You are here

public function FacetapiQueryTypeInterface::execute in Facet API 7

Same name and namespace in other branches
  1. 6.3 plugins/facetapi/query_type.inc \FacetapiQueryTypeInterface::execute()
  2. 7.2 plugins/facetapi/query_type.inc \FacetapiQueryTypeInterface::execute()

Alters the backend's native query object to execute the facet query.

As an example, modules that integrate with Apache Solr will set the necessary params for faceting, whereas modules that extend the core Search module will add SQL joins, filter clauses, and COUNT queries in order to implement faceting.

Parameters

mixed $query: The backend's native query object.

2 methods override FacetapiQueryTypeInterface::execute()
FacetapiTestNonterm::execute in tests/facetapi_test.plugins.inc
Implements FacetapiQueryTypeInterface::execute().
FacetapiTestTerm::execute in tests/facetapi_test.plugins.inc
Implements FacetapiQueryTypeInterface::execute().

File

plugins/facetapi/query_type.inc, line 79
Interfaces and base classes for query type plugins.

Class

FacetapiQueryTypeInterface
Interface implemented by all query type plugins.

Code

public function execute($query);