mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
Merge branch '3.9' into 3
This commit is contained in:
commit
1d9e98cd3b
@ -5,6 +5,7 @@ namespace SilverStripe\FullTextSearch\Search\Processors;
|
|||||||
use SilverStripe\FullTextSearch\Search\Services\SearchableService;
|
use SilverStripe\FullTextSearch\Search\Services\SearchableService;
|
||||||
use SilverStripe\FullTextSearch\Search\Variants\SearchVariantVersioned;
|
use SilverStripe\FullTextSearch\Search\Variants\SearchVariantVersioned;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
|
use SilverStripe\ORM\DB;
|
||||||
use SilverStripe\FullTextSearch\Search\Variants\SearchVariant;
|
use SilverStripe\FullTextSearch\Search\Variants\SearchVariant;
|
||||||
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
use SilverStripe\FullTextSearch\Search\FullTextSearch;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
@ -154,6 +155,9 @@ abstract class SearchUpdateProcessor
|
|||||||
*/
|
*/
|
||||||
public function process()
|
public function process()
|
||||||
{
|
{
|
||||||
|
if (!DB::is_active()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// Generate and commit all instances
|
// Generate and commit all instances
|
||||||
$indexes = $this->prepareIndexes();
|
$indexes = $this->prepareIndexes();
|
||||||
foreach ($indexes as $index) {
|
foreach ($indexes as $index) {
|
||||||
|
Loading…
Reference in New Issue
Block a user