protected function SolrCommandHelper::reindex in Search API Solr 4.x
Parameters
\Drupal\search_api\ServerInterface $server:
Throws
\Drupal\search_api\SearchApiException
3 calls to SolrCommandHelper::reindex()
- SolrAdminCommandHelper::deleteCollection in modules/
search_api_solr_admin/ src/ Utility/ SolrAdminCommandHelper.php - Delete Solr collection.
- SolrAdminCommandHelper::reload in modules/
search_api_solr_admin/ src/ Utility/ SolrAdminCommandHelper.php - Reload Solr core or collection.
- SolrAdminCommandHelper::uploadConfigset in modules/
search_api_solr_admin/ src/ Utility/ SolrAdminCommandHelper.php - Generates and uploads the configset for a Solr search server.
File
- src/
Utility/ SolrCommandHelper.php, line 133
Class
- SolrCommandHelper
- Provides functionality to be used by CLI tools.
Namespace
Drupal\search_api_solr\UtilityCode
protected function reindex(ServerInterface $server) : void {
foreach ($server
->getIndexes() as $index) {
if ($index
->status() && !$index
->isReadOnly()) {
$index
->reindex();
}
}
}