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.