Legacy Knowledge Base
公開されました Jul. 2, 2025

デフォルトでは存在しない言語のカスタム スペル チェッカーとクエリ候補を追加する

Written By

Dávid Hegedüs

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 「検索ポートレット」でスペル チェックと提案機能を有効にしたい場合がありますが、使用したい言語にはデフォルトではありません。

Environment

  • ライフレイ DXP 7.x

解決策

  • 追加したいすべての単語を含む単純な .txt ファイルを作成します
  • ドイツ語の例として、portal-ext.properties に次のプロパティを追加します。
    company.default.locale=de_DE
    locales.enabled=de_DE
    locales=de_DE,en_US
    index.search.spell.checker.dictionary[de_DE]=spellchecker/de_DE.txt
    index.search.spell.checker.supported.locales=en_US,de_DE
    index.search.query.suggestion.dictionary[de_DE]=querysuggestions/de_DE.txt
    index.search.query.suggestion.enabled=true
  • 作成した .txt ファイルを、構成したパスに配置します。この例では、完全なパスは次のとおりです。
    [Liferay_Home]/[Tomcat_Home]/webapps/ROOT/WEB-INF/classes/spellchecker/
    [Liferay_Home]/[Tomcat_Home]/webapps/ROOT/WEB-INF/classes/querysuggestions/

Did this article resolve your issue ?

Legacy Knowledge Base