Skip to content

Commit

Permalink
Merge branch '3.9' into 3
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 19, 2022
1 parent fad7c04 commit 8123a2d
Show file tree
Hide file tree
Showing 36 changed files with 6,893 additions and 2 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"php": "^7.4 || ^8.0",
"silverstripe/framework": "^4.10",
"monolog/monolog": "~1.15",
"ptcinc/solr-php-client": "^1.0",
"symfony/process": "^3.4 || ^4",
"tractorcow/silverstripe-proxy-db": "~0.1",
"ext-curl": "*"
Expand All @@ -38,7 +37,10 @@
"psr-4": {
"SilverStripe\\FullTextSearch\\": "src/",
"SilverStripe\\FullTextSearch\\Tests\\": "tests/"
}
},
"classmap": [
"thirdparty/solr-php-client"
]
},
"bin": [
"bin/fulltextsearch_quickstart"
Expand Down
4 changes: 4 additions & 0 deletions src/Search/Processors/SearchUpdateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use SilverStripe\FullTextSearch\Search\Services\SearchableService;
use SilverStripe\FullTextSearch\Search\Variants\SearchVariantVersioned;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\FullTextSearch\Search\Variants\SearchVariant;
use SilverStripe\FullTextSearch\Search\FullTextSearch;
use SilverStripe\Versioned\Versioned;
Expand Down Expand Up @@ -154,6 +155,9 @@ protected function getSource()
*/
public function process()
{
if (!DB::is_active()) {
return false;
}
// Generate and commit all instances
$indexes = $this->prepareIndexes();
foreach ($indexes as $index) {
Expand Down
Empty file added thirdparty/_manifest_exclude
Empty file.
Loading

0 comments on commit 8123a2d

Please sign in to comment.