You are here

public function SearchApiSolrCommands::getServerConfig in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/Commands/SearchApiSolrCommands.php \Drupal\search_api_solr\Commands\SearchApiSolrCommands::getServerConfig()
  2. 4.x src/Commands/SearchApiSolrCommands.php \Drupal\search_api_solr\Commands\SearchApiSolrCommands::getServerConfig()

Enables one disabled search index.

@command search-api-solr:get-server-config

@usage drush search-api-solr:get-server-config server_id file_name Get the config files for a solr server and save it as zip file.

@aliases solr-gsc,sasm-gsc,search-api-solr-get-server-config,search-api-solr-multilingual-get-server-config

Parameters

string $server_id: The ID of the server.

string $file_name: The file name of the config zip that should be created.

string $solr_version: The targeted Solr version.

Throws

\Drupal\search_api\ConsoleException Thrown if no indexes could be loaded.

File

src/Commands/SearchApiSolrCommands.php, line 77

Class

SearchApiSolrCommands
Defines Drush commands for the Search API Solr.

Namespace

Drupal\search_api_solr\Commands

Code

public function getServerConfig($server_id, $file_name, $solr_version = NULL) {
  $this->commandHelper
    ->getServerConfigCommand($server_id, $file_name, $solr_version);
}