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

Liferay のマルチサーチ リクエスト ソリューション

written-by

Richárd Szabácsik

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

問題

  • Liferay には、MultiSearch リクエストを処理するためのすぐに使えるソリューションはありません。

Environment

  • DXP 7.2

解決策

  • Multi-Search API com.liferay.portal.search.engine.adapter.api バンドルから MultisearchSearchRequest - MultisearchSearchResponse を介して Liferay Search の API の低レベル API として公開されます。
  • 簡単に言えば、それを使用するには、次のことを行う必要があります。
    1. 7.2 パッチ レベルに一致する DXP BOM API (release.dxp.api) (例: 7.2.10.fp14 (推奨)) を使用するか、上記のアーティファクトを (パッチ レベルに適したバージョンで) 使用します。 ) モジュールの build.gradleの依存関係として直接。 (関連 doc.)
    2. @Reference SearchEngineAdapter のようなコードで this
    3. MultisearchSearchRequest like thisをビルドして実行します。
    4. MultisearchSearchResponse API を使用して応答を処理します。

did-this-article-resolve-your-issue

legacy-knowledge-base