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

検索結果から無関係な文字を削除するには?

Written By

Kanchan Bisht

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 のすぐに使える機能が使用されています。 結果の各レコードには、ドキュメントのタイトル、ドキュメントの最初の数文、およびその他のいくつかのメタデータ属性が表示されます。 場合によっては、検索結果に最初の数文が表示される代わりに、ジャンク文字が表示されることがあります。 資料はPDFファイルです。 観察によると、ジャンク文字はドキュメント内の画像によるものです。 したがって、テキストのみを表示して画像を除外する解決策はあります ?
    再現手順:
    1) PDF ファイルを文書やメディアにアップロードする
    2) サインアウトしてそのファイルを検索する (例: この場合は「7」)
    3) 検索結果のジャンク文字を観察します。
    期待される動作: 検索結果にジャンク文字が表示されないはずです
    実際の動作: 検索結果にジャンク文字が表示されますScreenshot_from_2021-05-06_07-06-47.png

Environment

  • Liferay DXP 7.2 フィックスパック 10

解決策

  • Liferay はサードパーティのライブラリによって処理され、この要件を満たす OOTB 機能がないため、この正確な使用例は Liferay では達成できません。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base