You are here

public function QueryInterface::createConditionGroup in Search API 8

Creates a new condition group to use with this query object.

@todo Add $add_directly = TRUE parameter.

Parameters

string $conjunction: The conjunction to use for the condition group – either 'AND' or 'OR'.

string[] $tags: (optional) Tags to set on the condition group.

Return value

\Drupal\search_api\Query\ConditionGroupInterface A condition group object that is set to use the specified conjunction.

1 method overrides QueryInterface::createConditionGroup()
Query::createConditionGroup in src/Query/Query.php
Creates a new condition group to use with this query object.

File

src/Query/QueryInterface.php, line 166

Class

QueryInterface
Represents a search query on a Search API index.

Namespace

Drupal\search_api\Query

Code

public function createConditionGroup($conjunction = 'AND', array $tags = []);