Search results do not display blank strings for empty records
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
learn-legacy-article-disclaimer-text
Issue
- When searching web content created from a structure, the results do not return blank strings for empty fields. Instead, search ignores them by either returning null or nothing at all(e.g. missing element in an array).
Resolution
- The described behavior is expected as there is no way to search for empty strings nor is it mandatory for a searched document to contain every field of the persisted entity.
did-this-article-resolve-your-issue