You are here

public function SearchApiQueryInterface::createFilter in Search API 7

Creates a new filter to use with this query object.

Parameters

string $conjunction: The conjunction to use for the filter - either 'AND' or 'OR'.

$tags: (Optional) An arbitrary set of tags. Can be used to identify this filter down the line if necessary. This is primarily used by the facet system to support OR facet queries.

Return value

SearchApiQueryFilterInterface A filter object that is set to use the specified conjunction.

1 method overrides SearchApiQueryInterface::createFilter()
SearchApiQuery::createFilter in includes/query.inc
Creates a new filter to use with this query object.

File

includes/query.inc, line 82
Contains SearchApiQueryInterface and SearchApiQuery.

Class

SearchApiQueryInterface
Interface representing a search query on an Search API index.

Code

public function createFilter($conjunction = 'AND', $tags = array());