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

ウェブコンテンツのインデックス付き検索を無効にする

Written By

Justin Choi

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.

この記事では、管理者がLiferay DXP 7.0のJournal (Web Content)アセットのsearch with index 機能 を一時的に無効にする方法について説明します。 ウェブコンテンツの記事に対するこの機能は、デフォルトで true に設定されています。 この機能を無効にすると、プラットフォームが直接データベースを検索するため、全文検索結果に悪影響を及ぼし、エンドユーザーの検索体験に悪影響を及ぼす可能性があることに注意してください。

この が の意味しないこと:

  • これは、プラットフォームがインデックスを完全に無効化したことを意味するものではありません。 検索ポートレットは、これまで通りインデックス・クエリを使用します。
  • これは、 コントロールパネル → 構成 → サーバー管理 タブから利用可能な Reindex コマンドを削除するものではありません:
    • Reindex com.liferay.journal.model.JournalArticle.
    • Reindex com.liferay.journal.model.JournalFolder.

解決策

Journal(Webコンテンツ)資産に対して、 インデックス付き検索 機能を一時的に無効にする:

  1. コントロールパネル → 設定 → システム設定に移動してください。
  2. Webコンテンツ管理 ( Webコンテンツ検索ではありません)をクリックします。
  3. インデックス付き雑誌記事検索のチェックを外す(またはチェックを入れて有効にする)。
    journal-disable-index.PNG
    図1. 索引付き雑誌記事検索を無効にしました。
  4. [Update]ボタンをクリックします。

雑誌の記事を検索する際に、索引ではなく、直接データベースを検索するようにプラットフォームを更新しました。

あるいは、Liferay DXP 7.0では、 .cfg ファイルを使用し、 portal-ext.properties ではなくなっていますが、同じ作業を行うことができます。 この方法は、上記の理由からあまり好ましくありません。

  1. /osgi/configs フォルダに、 com.liferay.journal.web.configuration.JournalWebConfiguration.cfgというファイルを作成します。

  2. このファイルをテキストエディタで開いてください。
  3. 次のように入力します。journalArticlesSearchWithIndex=false.
  4. ファイルを保存します。

プラットフォームが新しい設定を検出し、変更が有効になります(管理者は、変更が有効になるのを確認するためにブラウザを更新する必要があるかもしれません)。

変更が行われると、サーバーはインデックスを使用せず、直接データベースを検索するようになります。

Did this article resolve your issue ?

Legacy Knowledge Base