SearchIndexController.php
127 * @note This is a callback method called on a matching work package @see BatchController::addWorkPackage()
136 $this->addWorkPackage($this->getMessage()->getText('Indexing %0% %1% objects, starting from %2%., ', [sizeof($oids), $type, ($i*self::OPTIMIZE_FREQ+1)]),
147 * @note This is a callback method called on a matching work package @see BatchController::addWorkPackage()
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:18
__construct(Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, Search $search)
Constructor.
Definition: SearchIndexController.php:67
SearchIndexController creates a Lucene index from the complete datastore.
Definition: SearchIndexController.php:46
getWorkPackage($number)
Definition: SearchIndexController.php:98
index($oids)
Create the lucene index from the given objects.
Definition: SearchIndexController.php:149
getStepNumber()
Get the number of the current step (1..number of steps).
Definition: BatchController.php:195
IndexedSearch implementations are used to search entity objects in a search index.
Definition: IndexedSearch.php:23
Search implementations are used to search entity objects.
Definition: Search.php:21
const NODES_PER_CALL
Definition: SearchIndexController.php:51
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
Implementations of Configuration give access to the application configuration.
Definition: Configuration.php:32
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
BatchController is used to process complex, longer running actions, that need to be divided into seve...
Definition: BatchController.php:73
addWorkPackage($name, $size, array $oids, $callback, $args=null)
Add a work package to session.
Definition: BatchController.php:210
ActionMapper implementations are responsible for instantiating and executing Controllers based on the...
Definition: ActionMapper.php:21
static isValid($oid)
Check if a serialized ObjectId has a valid syntax, the type is known and if the number of primary key...
Definition: ObjectId.php:123
initialize(Request $request, Response $response)
Definition: SearchIndexController.php:83
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:20
const OPTIMIZE_FREQ
Definition: SearchIndexController.php:54
Localization defines the interface for storing localized entity instances and retrieving them back.
Definition: Localization.php:32
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23