<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay Elastic search error about max length limitation</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113700308" />
  <subtitle>Liferay Elastic search error about max length limitation</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=113700308</id>
  <updated>2026-04-06T07:15:04Z</updated>
  <dc:date>2026-04-06T07:15:04Z</dc:date>
  <entry>
    <title>RE: Liferay Elastic search error about max length limitation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113701819" />
    <author>
      <name>Yan Paing</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113701819</id>
    <updated>2019-05-21T15:11:04Z</updated>
    <published>2019-05-21T15:11:04Z</published>
    <summary type="html">Thank you Christoph, now the max length issue is resolved. however while i tried to search the document then it is throwing following error again. This time it is saying spellCheckWorld_en_US. Could you please help?&lt;br /&gt;&lt;br /&gt;[2019-05-21T11:22:37,212][DEBUG][o.e.a.s.TransportSearchAction] [LiferayElasticsearchNode] [liferay-20099][0], node[zLA6B9HNTQyr8-FkLUzBeQ], [P], s[STARTED], a[id=YUpkXXVBRKCcLBw7XGxlMQ]: Failed to execute [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[liferay-20099], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false], types=[], routing=&amp;#39;null&amp;#39;, preference=&amp;#39;null&amp;#39;, requestCache=false, scroll=null, maxConcurrentShardRequests=5, batchedReduceSize=512, preFilterShardSize=128, allowPartialSearchResults=true, source={&amp;#34;suggest&amp;#34;:{&amp;#34;spellCheckRequest&amp;#34;:{&amp;#34;text&amp;#34;:&amp;#34;addentrygb2_003&amp;#34;,&amp;#34;term&amp;#34;:{&amp;#34;field&amp;#34;:&amp;#34;spellCheckWord_en_US&amp;#34;,&amp;#34;size&amp;#34;:1,&amp;#34;suggest_mode&amp;#34;:&amp;#34;MISSING&amp;#34;,&amp;#34;accuracy&amp;#34;:0.5,&amp;#34;sort&amp;#34;:&amp;#34;SCORE&amp;#34;,&amp;#34;string_distance&amp;#34;:&amp;#34;INTERNAL&amp;#34;,&amp;#34;max_edits&amp;#34;:2,&amp;#34;max_inspections&amp;#34;:5,&amp;#34;max_term_freq&amp;#34;:0.01,&amp;#34;prefix_length&amp;#34;:1,&amp;#34;min_word_length&amp;#34;:4,&amp;#34;min_doc_freq&amp;#34;:0.0}}}}}]&lt;br /&gt;org.elasticsearch.transport.RemoteTransportException: [LiferayElasticsearchNode][xxx.xxx.xx.xxx:9300][indices:data/read/search[phase/query]]&lt;br /&gt;Caused by: java.lang.IllegalArgumentException: no mapping found for field [spellCheckWord_en_US]&lt;br /&gt;        at org.elasticsearch.search.suggest.SuggestionBuilder.populateCommonFields(SuggestionBuilder.java:307) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.search.suggest.term.TermSuggestionBuilder.build(TermSuggestionBuilder.java:452) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.search.suggest.SuggestBuilder.build(SuggestBuilder.java:175) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.search.SearchService.parseSource(SearchService.java:815) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.search.SearchService.createContext(SearchService.java:616) ~[elasticsearch-6.5.0.jar:6.5.0]</summary>
    <dc:creator>Yan Paing</dc:creator>
    <dc:date>2019-05-21T15:11:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay Elastic search error about max length limitation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113701411" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113701411</id>
    <updated>2019-05-21T14:13:37Z</updated>
    <published>2019-05-21T14:13:37Z</published>
    <summary type="html">You need to install the smartcn analyzer in the remote elasticsearch. There are four analyzers Liferay needs by default. &lt;br /&gt;&lt;a href="https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/installing-elasticsearch"&gt;https://dev.liferay.com/discover/deployment/-/knowledge_base/7-0/installing-elasticsearch&lt;/a&gt;&lt;br /&gt;If you can&amp;#39;t do that, you could try to remove the chinese language globally in the instance settings. After doing that, try to do a full reindex of the portal. I am not sure, if that helps, but it might.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2019-05-21T14:13:37Z</dc:date>
  </entry>
  <entry>
    <title>Liferay Elastic search error about max length limitation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113700307" />
    <author>
      <name>Yan Paing</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=113700307</id>
    <updated>2019-05-21T10:22:34Z</updated>
    <published>2019-05-21T10:22:34Z</published>
    <summary type="html">Dear All,I tried to connect remote elastic search 6.5 server and found following error from elastic search. Can anyone suggest where should i do configuration.  And also i don&amp;#39;t use localized_title_zh_CN but according to the log it is showing using it and throwing error.  Thank you &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[2019-05-21T05:59:18,798][DEBUG][o.e.a.b.TransportShardBulkAction] [LiferayElasticsearchnode] [liferay-20099][0] failed to execute bulk item (index) index {[liferay-20099][LiferayDocumentType][com.liferay.docs.guestbook.model.Entry_PORTLET_129525], source[n/a, actual length: [2.1kb], max length: 2kb]}&lt;br /&gt;org.elasticsearch.index.mapper.MapperParsingException: analyzer [smartcn] not found for field [localized_title_zh_CN]&lt;br /&gt;        at org.elasticsearch.index.mapper.TypeParsers.parseAnalyzersAndTermVectors(TypeParsers.java:112) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.index.mapper.TypeParsers.parseTextField(TypeParsers.java:201) ~[elasticsearch-6.5.0.jar:6.5.0]&lt;br /&gt;        at org.elasticsearch.index.mapper.TextFieldMapper$TypeParser.parse(TextFieldMapper.java:215) ~[elasticsearch-6.5.0.jar:6.5.0]</summary>
    <dc:creator>Yan Paing</dc:creator>
    <dc:date>2019-05-21T10:22:34Z</dc:date>
  </entry>
</feed>
