You are here

public function SolrCloudConnectorInterface::createCollection in Search API Solr 4.x

Creates collection.

Parameters

array $options:

string|null $collection: Collection.

Return value

bool TRUE if successful, FALSE otherwise.

Throws

\Drupal\search_api_solr\SearchApiSolrException

1 method overrides SolrCloudConnectorInterface::createCollection()
StandardSolrCloudConnector::createCollection in src/Plugin/SolrConnector/StandardSolrCloudConnector.php
Creates collection.

File

src/SolrCloudConnectorInterface.php, line 119

Class

SolrCloudConnectorInterface
The Solr Cloud connector interface.

Namespace

Drupal\search_api_solr

Code

public function createCollection(array $options, ?string $collection = NULL) : bool;