legacy-knowledge-base
公開されました Jul. 2, 2025

Elasticsearchにおけるインデックス限界エラーの総数

written-by

Jorge Diaz

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

この記事では、Elasticsearchサーバが最大総フィールド数のインデックス制限に達した場合の解決策を提供しています。 その結果、新しいコンテンツがインデックスに追加されていません。

同時に、コンソールはこのエラーを発生させます。

2019-01-24 19:01:49.069 ERROR [liferay/search_writer/SYSTEM_ENGINE-423][ElasticsearchUpdateDocumentCommandImpl:50] failure in bulk execution:_[1]: index [liferay-20116], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_2557174], message [java.lang.IllegalArgumentException: Limit of total fields [10000] in index [liferay-20116] has been exceeded]_[3]: index [liferay-20116], type [LiferayDocumentType], id [com.liferay.journal.model.JournalArticle_PORTLET_2556975], message [java.lang.IllegalArgumentException: Limit of total fields [10000] in index [liferay-20116] has been exceeded] [Sanitized]

環境への配慮

  • ライフレイDXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

決議

  • この問題は、 https://issues.liferay.com/browse/LPS-103224で解決します。
  • LPS-103224の修正を含むHotfixやfixpackをインストールして有効にする必要があります。
    1. Liferay のインストールに LPS-103224 の修正が適用されていることを確認してください。
    2. システム設定→ダイナミックデータマッピング→ダイナミックデータマッピングインデクサへ
    3. "レガシーダイナミックデータマッピングインデックスフィールドを有効にする "を非アクティブにします。 チェック
    4. 完全な再インデックスを実行します。
  • 回避策として、そのLPSが適用できない場合は、Elasticsearchのマッピング制限を変更することができますが、Elasticsearchのスループットに影響を与える可能性があります。
    • index.mapping.total_fields.limitを追加します。 <value> をシステム設定の "Additional Index Configurations" プロパティの Elasticsearch/Elasticsearch 6 エントリに追加します。 このrは、完全な再インデックスを実行することを条件としています!

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base