mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 01:43:13 +00:00
Merge pull request #3417 from alchemy-fr/PHRAS-3003_large-value-32ko_es_4.1
PHRAS-3003 #comment Merge truncate large value at 32ko in elasticesearch 4.1
This commit is contained in:
@@ -151,6 +151,7 @@ class RecordHelper
|
||||
return (bool) $value;
|
||||
|
||||
case FieldMapping::TYPE_STRING:
|
||||
$value = substr($value, 0, 32766); // for lucene limit, before a better solution
|
||||
return str_replace("\0", '', $value);
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user