Issue
Search functionality fails when records are created and added through data type. Search works only on reindexing the class from the Search landing page.
Symptoms and Impact
Search functionality fails in data type on entering a search string.
The following screenshot illustrates Data type Search screen:
Steps to reproduce
- Open data type in Dev studio.
- Perform a search in the Records section.
Root Cause
Incremental index (auto index creation) is not enabled for data type or data classes.
Solution
For versions prior to Pega Platform 24.2
Follow either of the following approaches:
Approach 1
- Make the configuration such that the class table targets to PegaData database.
- Navigate to the Advanced tab of the class form, in the RuleForm section, and select Type as Harness and Name as RuleForm as illustrated in the following screenshot:
Or
Approach 2
Delete Search indexes created for the data class from the Search landing page.
This will force the system to perform a database search to retrieve the results.
For Pega Platform 24.2 and later versions
Use the following DSS to enable data class for incremental indexing:
Pega-SearchEngine
indexer/srs/allowIncrementalIndexingDataClassWithoutAppletHarness
Value: True