Package DE_EPAGES::RemoteSearch::API::Object::IndexManager
Package used to control shop index creation and remote search settings. Catches errors and saves them as warnings. Use DE_EPAGES::Core::API::Warning::BlockWarnings to handle warnings.
Example |
my $ManagerParams = DE_EPAGES::RemoteSearch::API::Object::IndexManagerParams->new( create => 1 ); my $Manager = DE_EPAGES::RemoteSearch::API::Object::IndexManager->new(); my $aWarnings = BlockWarnings(sub { $Manager->manageShopsByAlias($ManagerParams, ['DemoShop']); }); |
Functions
manageCompleteDB
Works on all shops within the /Shops folder using parmeter from $ManagerParams
Syntax |
$Manager->manageCompleteDB( $ManagerParams ); |
Input |
|
manageShopsByAlias
Works on shops by alias. If irst alias equals 'ALL' than all shops in store processed. Actual tasks depend on the params passed by $ManagerParams.
Syntax |
$manager->manageShopsByAlias($ManagerParams, $aAliases ); |
Example |
$manager->manageShopsByAlias($ManagerParams, [ 'Shop1', 'Shop2' ] ); |
Input |
|
manageShopsByGUID
works on shops by guid. Actual tasks depend on the params passed by $ManagerParams
Syntax |
$Manager->manageShopsByGUID($ManagerParams, $aGUIDs ); |
Example |
$Manager->manageShopsByGUID($ManagerParams, [ 'GUID1', 'GUID2' ] ); |
Input |
|
manageShopsByIndexStatus
Works on shops based on the current index status Actual tasks depend on the params passed by the $ManagerParams
Syntax |
$manager->manageShopsByIndexStatus($ManagerParams, INDEXSTATUS_ERROR ); |
Input |
|
manageSystem
Sets system parameters.
Syntax |
$Manager->manageSystem($ManagerParams); |
Input |
|
new
Execute various index management tasks. Tasks modify remote search related attributes on Shop/RootObject and/or communicate with remote search service host.
Syntax |
my $IndexManager = DE_EPAGES::RemoteSearch::API::Object::IndexManager->new(); |
Return |
|