Long Web Content articles are not returned in search results

Issue

  • Very long web content articles are not being returned in search results

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1

Resolution

  • This is due to a limitation in Elasticsearch where the number of bytes for any field being indexed cannot exceed 32,766. This value is hard-coded and cannot be changed.
  • The best available workaround for articles that exceed this value would be to set the fields that are exceeding the max index size as "Not Indexable" in the Web Content structure
  • By doing this, the fields with the content would not be indexed, but the rest of the articles (such as the title and metadata) could still be indexed
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助