You are here

public function SearchApiSolrCommands::reinstallFieldtypes in Search API Solr 4.x

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

Re-install Solr Field Types from their yml files.

@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

File

src/Commands/SearchApiSolrCommands.php, line 61

Class

SearchApiSolrCommands
Defines Drush commands for the Search API Solr.

Namespace

Drupal\search_api_solr\Commands

Code

public function reinstallFieldtypes() {
  $this->commandHelper
    ->reinstallFieldtypesCommand();
  $this
    ->logger()
    ->success(dt('Solr field types re-installed.'));
}