You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.
Initial indexing API for DCM Lists
This endpoint publishes all cases and tasks as events to the DCM Lists application, via a queue. This endpoint needs to be enabled in configuration using the following property in the application-dcm-lists-publisher.properties of the case-engine:
|
Note
It's important that you run this endpoint when the Blueriq Runtime is not in active use!
REST Call
|
Execution may take quite some time, depending on the number of cases. The progress of the indexing will be written to the log file on INFO level.
Preconditions
- No other users should use the runtime
- The Blueriq DCM Lists Service should be running and configured properly
- The property
blueriq.dcm.lists-publisher.indexing.enabled
should be set totrue
. - The endpoint uses the same authentication as other components in the Case Engine, see Blueriq Case Engine.
- This endpoint is designed to be used only once.
- If the indexing fails, you can use this endpoint again if you drop the cases and tasks collections in MongoDB.
- The application ID that is stored with each case should resolve to a valid Blueriq project, according to the algorithm that is explained in the section about Migration API. If no project exists or if the project is not valid, the case and its tasks will be skipped.
Collation
Dropping the cases and task collections in MongoDB also means that the collation is lost. This has the effect that searches in the DCM Lists service are not case-insensitive anymore. When possible try to only empty the collections instead of dropping them in order to keep the correct collation. To re-create the collation do one of the following steps:
- When the collections are dropped, restart the DCM-Lists application. This will trigger the creation of the collections with the correct collation.
- When the collections are dropped, manually re-create the collections with the correct collation.
The correct collation is
collation: { locale: <your locale>, strength: 2 } }
For more information on collations, please refer to the documentation of MongoDB.