SearchIndexController Class Reference
Detailed Description
SearchIndexController creates a Lucene index from the complete datastore.
The controller supports the following actions:
Action default
Create the index.
For additional actions and parameters see BatchController actions.
Definition at line 41 of file SearchIndexController.php.
Inheritance diagram for SearchIndexController:
Public Member Functions | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, Search $search) | |
Public Member Functions inherited from BatchController | |
initialize (Request $request, Response $response) | |
Public Member Functions inherited from Controller | |
__construct (Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration) | |
initialize (Request $request, Response $response) | |
execute ($method=null) | |
getRequest () | |
getResponse () | |
Protected Member Functions | |
getWorkPackage ($number) | |
collect ($types) | |
index ($oids) | |
optimize ($oids) | |
Protected Member Functions inherited from BatchController | |
doExecute () | |
getStepNumber () | |
addWorkPackage ($name, $size, $oids, $callback, $args=null) | |
processPart () | |
getNumberOfSteps () | |
getDisplayText ($step) | |
getDownloadFile () | |
getWorkPackage ($number) | |
Protected Member Functions inherited from Controller | |
validate () | |
executeSubAction ($action) | |
getLogger () | |
getSession () | |
getPersistenceFacade () | |
getPermissionManager () | |
getActionMapper () | |
getLocalization () | |
getMessage () | |
getConfiguration () | |
assignResponseDefaults () | |
isLocalizedRequest () | |
checkLanguageParameter () | |
Additional Inherited Members | |
Public Attributes inherited from BatchController | |
const | ONE_CALL_SESSION_VARNAME = 'BatchController.oneCall' |
const | STEP_SESSION_VARNAME = 'BatchController.curStep' |
const | NUM_STEPS_VARNAME = 'BatchController.numSteps' |
const | DOWNLOAD_STEP = 'BatchController.downloadStep' |
const | WORK_PACKAGES_VARNAME = 'BatchController.workPackages' |
Constructor & Destructor Documentation
__construct | ( | Session | $session, |
PersistenceFacade | $persistenceFacade, | ||
PermissionManager | $permissionManager, | ||
ActionMapper | $actionMapper, | ||
Localization | $localization, | ||
Message | $message, | ||
Configuration | $configuration, | ||
Search | $search | ||
) |
Constructor.
- Parameters
-
$session $persistenceFacade $permissionManager $actionMapper $localization $message $configuration $search
Definition at line 56 of file SearchIndexController.php.
Member Function Documentation
|
protected |
Definition at line 72 of file SearchIndexController.php.
|
protected |
Collect all oids of the given types.
- Parameters
-
$types The types to process
- Note
- This is a callback method called on a matching work package
Definition at line 103 of file SearchIndexController.php.
|
protected |
Create the lucene index from the given objects.
- Parameters
-
$oids The oids to process
- Note
- This is a callback method called on a matching work package
Definition at line 120 of file SearchIndexController.php.
|
protected |
Optimize the search index.
- Parameters
-
$oids The oids to process
- Note
- This is a callback method called on a matching work package
Definition at line 141 of file SearchIndexController.php.