ContentSource::UpdateMultiple (open)
Execute multiple reindex actions
Syntax
LOADLIB "mod::consilio/lib/catalogs.whlib";
MACRO UpdateMultiple(RECORD ARRAY actions, RECORD options)
Parameters
RECORD ARRAY actions
Actions to execute
STRING action
Action to take. Either reindex
or delete
STRING groupid
Group ID. Required unless deleting a specific object
STRING objectid
Explicit object ID, leave empty to reindex/delete the whole group
RECORD options
Options
BOOLEAN foreground
Run in the foreground, wait for index to be refreshed
BOOLEAN refresh
Refresh after the actions (if not set refreshes only if running in the foreground)
Description
This allows catalogs to combine multiple actions (once support is available). If this action fails halfway through it may be unpredictable which actions succeeded and which failed.