再インデックスを実行しようとすると、次のようなエラーが原因で、JournalArticle コンテンツが適切にインデックス化されません:
Solr の場合:
2020-09-23 06:32:13 ERROR org.apache.solr.common.SolrException: Exception writing document
id com.liferay.journal.model.JournalArticle_PORTLET_441133 to the index; possible analysis error:
Document contains at least one immense term in field="ddm__keyword__54485__column_en_US"
(whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please
correct the analyzer to not produce such terms. The prefix of the first immense term is: '[60, 116,
97, 98, 108, 101, 32, 98, 111, 114, 100, 101, 114, 61, 34, 48, 34, 32, 99, 101, 108, 108, 112, 97,
100, 100, 105, 110, 103, 61]...', original message: bytes can be at most 32766 in length; got 41906.
Perhaps the document has an indexed string field (solr.StrField) which is too large
Elasticsearch の場合:
2021-02-04 00:36:01.854 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][BulkDocumentRequestExecutorImpl:53]
failure in bulk execution:_[6011]: index [liferay-10154], type [LiferayDocumentType],
id [com.liferay.journal.model.JournalArticle_PORTLET_947074], message
[java.lang.IllegalArgumentException:
Document contains at least one immense term in field="ddm__keyword__1499431__body_el_GR" (whose UTF8 encoding is longer than the max length 32766),
all of which were skipped. Please correct the analyzer to not produce such terms.
The prefix of the first immense term is: '[-31, -68, -120, -49, -128, -49, -116, 32, -49,
-124, -50, -84, -49, -126, 32, -31, -68, -128, -49, -127, -49,
-121, -50, -84, -49, -126, 32, -49, -124, -50]...', original message:
bytes can be at most 32766 in length; got 47534]_[6029]:
2021-02-04 00:36:01.930 ERROR [liferay/search_writer/SYSTEM_ENGINE-1]
[ElasticsearchIndexWriter:409] Bulk update failed