Skip to content
Snippets Groups Projects
Commit b78bbf72 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner
Browse files

If the list of indexes is not limited for parallel indexing, only handle Solr backends.

parent 8fdb8bc3
No related branches found
No related tags found
No related merge requests found
Pipeline #515263 failed
......@@ -218,7 +218,8 @@ class SolrCommandHelper extends CommandHelper {
/** @var \Drupal\search_api_solr\Entity\Index $index */
foreach ($indexes as $index) {
if (!$index->status() || $index->isReadOnly()) {
if (!$index->status() || $index->isReadOnly() || (empty($indexIds) && !($index->getServerInstance()->getBackend() instanceof SolrBackendInterface))) {
// If the list of indexes is not limited, only handle Solr backends.
continue;
}
$tracker = $index->getTrackerInstance();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment