You are here

public static function FacetapiQueryTypeInterface::getType in Facet API 7

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

Returns the query type associated with the plugin.

Query types must be standard across all backends. For example, the common "term" query type must execute the same type of query for backends that integrate with Apache Solr, the core Search module, or any other search engine that implementing modules connect to.

It is recommended that the strings returned by this method contain only lowercase letters with optional underscores.

Return value

string The query type.

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

File

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

Class

FacetapiQueryTypeInterface
Interface implemented by all query type plugins.

Code

public static function getType();