Issue
When using Search and Reporting Service (SRS) for full-text search, global search does not return results when the search criteria match property values sourced from an embedded page or a "refer to" / "copy from" data page property. This behavior is observed when using the out-of-the-box search box in the portal.
Symptoms and Impact
- Full-text search returns no results or incomplete results for certain case types.
- The missing results are associated with properties that are populated from a data page (refer to / copy from).
- The issue is reproducible by searching on identifiers, IDs, or other values stored in embedded data page-sourced properties.
- The behavior is observed using the out-of-the-box search box in the portal.
Steps to reproduce
- Configure a work class with one or more xustom search properties where the property value is sourced from an embedded page or a property that references or copies data from a data page.
- Ensure the DSS indexer/srs/indexDataRetrievedAutomatically is set to false (default) or not present.
- Perform a full index rebuild via > > > .
- Navigate to the user portal and open the global search box.
- Enter a search term that matches a value stored in one of the embedded or data page-sourced properties (for example, an ID, code, or name that is only present on the embedded page). Result: The search returns no results or incomplete results, even though matching records exist.
- Confirm that searching on a top-level scalar property (for example, pyStatusWork) returns results correctly, isolating the failure to embedded/data page-sourced properties.
Root Cause
By default, SRS does not index pages that reference a data page or copy data from a data page. As a result, embedded or data page-sourced property values are excluded from the search index, causing search to return incomplete or no results for those fields.
Solution
Enable the following Dynamic System Setting (DSS), then resynchronize the data models and reindex the affected classes.
DSS Details:
- Owning Ruleset: Pega-SearchEngine
- Setting purpose: indexer/srs/indexDataRetrievedAutomatically
- Value: true
No system restart required.
This setting enables indexing of pages that reference or copy data from a data page, and page lists that copy data from a data page.
Steps:
- In Pega Infinity Studio, click > > Dynamic System Settings.
- Search for indexDataRetrievedAutomatically.
- In the Value field, enter true.
- Click Save.
- Navigate to > > Search data model and click to regenerate the data model for affected classes.
- Navigate to > > Index management and trigger a full reindex for the affected classes.
- Validate that global search now returns results for properties sourced from embedded pages or data pages.
Note: After enabling this DSS, reindexing may take additional time depending on the volume of data.