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

サイト管理メニューで部分検索が正しく動作しない。

Written By

Peter Schwarcz

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.

問題

  • サイト管理(ウェブコンテンツ、ブログ、ワークフロー送信など)のメニューでツールバー検索機能を使用すると、アスタリスクワイルドカードがレコードの部分文字列のみと併用され、最初の文字がない場合、期待通りにレコードが返されないことがあります。
  • そのような例として、次のようなレコードがある場合です:注文 12345
  • "*12345*"で検索した場合。の場合、正しいレコードを返します。 しかし、最初の数字を検索から外し、すべてをそのままにした場合、"*2345*"、返ってきません。
  • 同様に、 "*Order*"を検索するととすると、レコードが返ってきますが、 "*rder*" 、レコードは一切返ってきません。
  • 再インデックスを実行しても効果がない。

Environment

  • Liferay DXP 7.3

解決策

  • ワイルドカード検索ができないことは、ツールバー検索を使用しているすべてのコンポーネントに影響するため、現在の製品の制限事項となっています。
    そのため、それに伴いFeature Requestが開設されています:
    LPS-152695、そちらのチケットで手続きを行ってください。
  • 回避策として、 KaleoInstanceModelPreFilterContributor.java、メソッド appendAssetTitleTerm()、 BooleanQueryの代わりに WildcardQuery を使用すべきです。実装の参考として、以下の変更を確認してください:
Did this article resolve your issue ?

Legacy Knowledge Base