PHRAS-3003_large-value-32ko_es_4.1

- fix (temporary ?) : text values are kept full in metadata table, but truncated to 32Ko by indexer.
This commit is contained in:
Jean-Yves Gaulier
2020-03-30 15:46:04 +02:00
parent ddca8a24a9
commit 40b9a7cd0c

View File

@@ -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: