Legacy Knowledge Base
公開されました Jun. 30, 2025

検索結果では、値が空または Null の日付フィールドは無視される

Written By

Joel Jeong

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.

問題

  • 日付フィールドを含むジャーナル記事構造を作成する場合、特定の会社の要件に従って、これらのフィールドを「必須」としてマークしてはならない場合があります。 ただし、これらのフィールドは「必須」ではありませんが、インデックス作成のためにこれらの日付フィールドの一部を含める必要がある場合があります。

    これを実現するための 1 つのオプションは、 ExpectedOrderDate フィールドを含む Elasticsearch マッピングを構成することです。 これらのフィールドは「日付」タイプであり、「必須」フィールドではないため、null/空の値を含めることができます。 ただし、このマッピングを使用してインデックス作成を実行すると、ExpectedOrderDate が空/null のすべてのレコードがスキップされ、「_ignored」というタグが付けられます。

    UI で Elasticsearch クエリを実行してレコードをフェッチすると、これらのレコードはスキップされ、結果に表示されません。

Environment

  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決策

  • これは LPS-158694 によって解決されました。
  • DXP 7.3-u10 または DXP 7.4-u36 に更新するか、ヘルプ センター チケットを開いて、LPS-158694 を含むホットフィックスをリクエストしてください。

Did this article resolve your issue ?

Legacy Knowledge Base