Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26494

Error on indexing big content in TextBlock

    XMLWordPrintable

    Details

      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',
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              internethic Team Internethic
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: