Details
-
Improvement
-
Resolution: Fixed
-
Low
-
1.5.2
Description
FieldType TextBlock are not indexed with large content
Step :
1. Publish and index content with large TextBlock
Solr error :
Exception writing document id content94frefr to the index; possible analysis error. ... Caused by..: java.lang.IllegalArgumentException: Document contains at least one immense term in field=\\"annals_number_txt_summary_value_s\\" (whose UTF8 encoding is longer than the max length 32766)
TextBlock must be suffixed by "_t" to indexing.
diff --git a/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/TextBlock/SearchField.php b/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/TextBlock/SearchField.php index c9b5355..2308edd 100755 --- a/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/TextBlock/SearchField.php +++ b/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/FieldType/TextBlock/SearchField.php @@ -34,7 +34,7 @@ class SearchField implements Indexable new Search\Field( 'value', $field->value->data, - new Search\FieldType\StringField() + new Search\FieldType\TextField() ), new Search\Field( 'fulltext',