mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
Merge pull request #2 from cam-findlay/patch-1
This commit is contained in:
commit
eb25505a8e
@ -89,6 +89,17 @@ class SolrCellTextExtractor extends FileTextExtractor
|
||||
SS_Log::NOTICE
|
||||
);
|
||||
return null;
|
||||
} catch (Guzzle\Http\Exception\ServerErrorResponseException $e) {
|
||||
//catch other errors that Tika can throw vai Guzzle but are not caught and break Solr search query in some cases.
|
||||
SS_Log::log(
|
||||
sprintf(
|
||||
'Tika server error attempting to extract from "%s" (message: %s)',
|
||||
$path,
|
||||
$e->getMessage()
|
||||
),
|
||||
SS_Log::NOTICE
|
||||
);
|
||||
return null;
|
||||
}
|
||||
// Use preg match to avoid SimpleXML running out of memory on large text nodes
|
||||
preg_match(
|
||||
|
Loading…
Reference in New Issue
Block a user