legacy-knowledge-base
公開されました Jun. 30, 2025

強調表示が有効になっていると、検索結果の概要が不完全になることがあります

written-by

Brian Suh

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

問題

  • 強調表示を有効にすると、検索の概要には一致する文のみが表示されます。 一致するものがない場合は、要約にすべての文が表示されます。

Environment

  • Liferay DXP 7.3
  • Elasticsearch

解決策

  • Liferay DXP は、 Elasticsearch の Unified Highlighterから提供されるハイライトを使用します。 この蛍光ペンの機能の一部は、フィールドを文に分解することです。 強調表示されたフィールドが Elasticsearch から受信されない場合は、デフォルトの説明を使用します。

    検索語が最初の文の単語と一致したときに説明全体を返すのに役立つため、portal-ext.properties で次の方法で次のプロパティを調整することをお勧めします。

    index.search.highlight.fragment.size=200

  • デフォルトでは、プロパティは値「80」に設定されており、次の説明があります。

    Set the fragment size returned from the search result highlighter.

  • 必要な要件に合わせてフラグメント サイズを調整してください。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base