mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Fix class limit on delete query in SolrIndex
This commit is contained in:
parent
27270d0528
commit
1fc1a8f68c
@ -237,7 +237,9 @@ class Solr_Reindex extends BuildTask {
|
||||
$classes = array_intersect_key($classes, array_combine($limitClasses, $limitClasses));
|
||||
}
|
||||
|
||||
Solr::service($index)->deleteByQuery('ClassHierarchy:(' . implode(' OR ', array_keys($classes)) . ')');
|
||||
if($classes) {
|
||||
Solr::service($index)->deleteByQuery('ClassHierarchy:(' . implode(' OR ', array_keys($classes)) . ')');
|
||||
}
|
||||
|
||||
foreach ($classes as $class => $options) {
|
||||
$includeSubclasses = $options['include_children'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user