Legacy Knowledge Base
Published Jun. 30, 2025

Search Results Ignore Date Field with Empty or Null Value

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.

Issue

  • When creating Journal Article Structures with Date Fields, cases may occur where these fields must not be marked as "mandatory" as per specific company requirements. However, despite these fields not being "mandatory", there may be cases where some of these date fields need to be included for indexing purposes.

    To achieve this, one option is to configure Elasticsearch mappings that contain the ExpectedOrderDate field. These fields are of the type “Date” and should be able to contain null/empty values since this is not a "mandatory" field. However, when running the indexing using this mapping, all the records with ExpectedOrderDate with empty/null get skipped and get a tag “_ignored”.

    When performing an Elasticsearch query to fetch records in the UI, these records get skipped and don’t appear in the results.

     

Environment

  • Liferay DXP 7.3
  • Liferay DXP 7.4

Resolution

  • This has been resolved by LPS-158694. 
  • Update to DXP 7.3-u10 or DXP 7.4-u36, or open a Help Center ticket to request a hotfix that includes LPS-158694.

 

Did this article resolve your issue ?

Legacy Knowledge Base