Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X EE, Master
-
7.0.x
-
Committed
-
1
-
3
Description
1. Go to Content->Documents and Media, upload a image "test.png" as document.
2. Go to Content->Web Content->⋮ button > Structures > Add > Input "Name" > Add "Image" field > Save, the structure called "testStructure"
3. Add a template for this structure "testStructure".
4. Go to Content->Web Content->Add a web content by using "testStructure".
5. Input "Title", Select "Image" (step 1 uploaded), and Input "Image Description" (32766 or more characters) - feel free to use the text in the attached document > Save.
Actual Behavior:
The following error is thrown, the Image field can't be indexed.
08:36:31,689 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20113], typ
e [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_34625], message [java.lang.IllegalArgumentException: Document contains at least on
e immense term in field="ddm__keyword__34387__Image9hz7_en_US" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please cor
rect the analyzer to not produce such terms. The prefix of the first immense term is: '[123, 34, 103, 114, 111, 117, 112, 73, 100, 34, 58, 34, 50, 48, 49, 52,
48, 34, 44, 34, 110, 97, 109, 101, 34, 58, 34, 55, 48, 120]...', original message: bytes can be at most 32766 in length; got 40174] [Sanitized]
Expected result
No error is thrown, the Image field can be indexed properly.