mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
Merge pull request #223 from creative-commoners/pulls/3.2/use-exception
FIX Use \Exception for catching Solr exceptions
This commit is contained in:
commit
d2c4181826
@ -105,8 +105,8 @@ class SearchUpdater
|
|||||||
'command' => $command,
|
'command' => $command,
|
||||||
'fields' => array()
|
'fields' => array()
|
||||||
);
|
);
|
||||||
} // Otherwise update the class label if it's more specific than the currently recorded one
|
} elseif (is_subclass_of($class, $writes[$key]['class'])) {
|
||||||
elseif (is_subclass_of($class, $writes[$key]['class'])) {
|
// Otherwise update the class label if it's more specific than the currently recorded one
|
||||||
$writes[$key]['class'] = $class;
|
$writes[$key]['class'] = $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace SilverStripe\FullTextSearch\Solr;
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
|
|
||||||
|
use Exception;
|
||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\Core\Environment;
|
use SilverStripe\Core\Environment;
|
||||||
use SilverStripe\FulltextSearch\Search\Indexes\SearchIndex;
|
use SilverStripe\FulltextSearch\Search\Indexes\SearchIndex;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user