You are here

public function SearchApiSolrCommands::reinstallFieldtypes 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::reinstallFieldtypes()
  2. 4.x src/Commands/SearchApiSolrCommands.php \Drupal\search_api_solr\Commands\SearchApiSolrCommands::reinstallFieldtypes()

Lists all search indexes.

@command search-api-solr:reinstall-fieldtypes

@usage drush search-api-solr:reinstall-fieldtypes Deletes all Solr Field Type and re-installs them from their yml files.

@aliases solr-reinstall-ft,sasm-reinstall-ft,search-api-solr-delete-and-reinstall-all-field-types,search-api-solr-multilingual-delete-and-reinstall-all-field-types

Throws

\Drupal\search_api\SearchApiException Thrown if an index has a server which couldn't be loaded.

File

src/Commands/SearchApiSolrCommands.php, line 53

Class

SearchApiSolrCommands
Defines Drush commands for the Search API Solr.

Namespace

Drupal\search_api_solr\Commands

Code

public function reinstallFieldtypes() {
  $this->commandHelper
    ->reinstallFieldtypesCommand();
}