eZPublish(LegacyStack)  5.1
updatesearchindex.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

if($siteAccess) changeSiteAccessSetting ($siteAccess)
 

Variables

 $cleanupSearch = $options['clean'] ? true : false
 
 $cli = eZCLI::instance()
 
 $conds
 
 $count = eZPersistentObject::count( $def, $conds, 'id' )
 
 $db = eZDB::instance()
 
 $dbHost = $options['db-host'] ? $options['db-host'] : false
 
 $dbImpl = $options['db-driver'] ? $options['db-driver'] : false
 
 $dbName = $options['db-database'] ? $options['db-database'] : false
 
 $dbPassword = $options['db-password'] ? $options['db-password'] : false
 
 $dbUser = $options['db-user'] ? $options['db-user'] : false
 
if(!$searchEngine instanceof
ezpSearchEngine) if($cleanupSearch) 
$def = eZContentObject::definition()
 
 $length = 50
 
 $limit = array( 'offset' => 0 , 'length' => $length )
 
foreach($objects as $object) $limit ['offset'] = $length
 
 $needRemoveWithUpdate = $searchEngine->needRemoveWithUpdate()
 
 $objects = eZPersistentObject::fetchObjectList( $def, null, $conds, null, $limit )
 
 $options
 
 $script
 
 $searchEngine = eZSearch::getEngine()
 
 $showSQL = $options['sql'] ? true : false
 
 $siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
 
 do
 

Function Documentation

if ($siteAccess) changeSiteAccessSetting (   $siteAccess)

Variable Documentation

$cleanupSearch = $options['clean'] ? true : false
$cli = eZCLI::instance()
$count = eZPersistentObject::count( $def, $conds, 'id' )
$db = eZDB::instance()
$dbHost = $options['db-host'] ? $options['db-host'] : false
$dbImpl = $options['db-driver'] ? $options['db-driver'] : false
$dbName = $options['db-database'] ? $options['db-database'] : false
$dbPassword = $options['db-password'] ? $options['db-password'] : false
$dbUser = $options['db-user'] ? $options['db-user'] : false

Referenced by eZDBSchemaInterface\appendSQLComments(), eZPersistentObject\attribute(), eZAuthor\attributes(), eZPersistentObject\attributes(), eZPersistentObject\count(), eZNotificationEventType\create(), eZDataType\create(), eZINI\defaultOverrideDirs(), eZDbSchemaChecker\diff(), eZDbSchemaChecker\diffTable(), Cezpdf\ezColumnsStart(), eZInformationCollection\fetchCollectionsList(), eZPersistentObject\fetchObject(), eZPersistentObject\fetchObjectList(), eZWorkflowType\fetchRegisteredTypes(), eZPersistentObject\fill(), eZMysqlSchema\generateAddFieldSql(), eZPgsqlSchema\generateAddFieldSql(), eZMysqlSchema\generateAddIndexSql(), eZPgsqlSchema\generateAddIndexSql(), eZMysqlSchema\generateAlterFieldSql(), eZPgsqlSchema\generateAlterFieldSql(), eZPgsqlSchema\generateDefaultDef(), eZMysqlSchema\generateDropIndexSql(), eZPgsqlSchema\generateDropIndexSql(), eZMysqlSchema\generateFieldDef(), eZPgsqlSchema\generateFieldDef(), eZPgsqlSchema\generateNullDef(), eZPersistentObject\getShortAttributeName(), eZPersistentObject\hasAttribute(), eZi18nOperator\namedParameterList(), eZPersistentObject\newObjectOrder(), eZi18nOperator\operatorTemplateHints(), eZTemplateSwitchFunction\process(), eZPersistentObject\remove(), eZPersistentObject\removeObject(), eZPersistentObject\reorderObject(), eZINI\selectOverrideScope(), eZPersistentObject\setAttribute(), eZContentClassName\sqlAppendFilter(), eZContentClassName\sqlFilter(), eZPersistentObject\storeObject(), and eZPersistentObject\updateObjectList().

$limit = array( 'offset' => 0 , 'length' => $length )
foreach ($objects as $object) $limit['offset'] = $length
$needRemoveWithUpdate = $searchEngine->needRemoveWithUpdate()
$options
Initial value:
= $script->getOptions( "[db-host:][db-user:][db-password:][db-database:][db-type:|db-driver:][sql][clean]",
"",
array( 'db-host' => "Database host",
'db-user' => "Database user",
'db-password' => "Database password",
'db-database' => "Database name",
'db-driver' => "Database driver",
'db-type' => "Database driver, alias for --db-driver",
'sql' => "Display sql queries",
'clean' => "Remove all search data before beginning indexing"
) )
$script
Definition: adddefaultstates.php:22
$script
Initial value:
= eZScript::instance( array( 'description' => ( "eZ Publish search index updater.\n\n" .
"Goes trough all objects and reindexes the meta data to the search engine" .
"\n" .
"updatesearchindex.php"),
'use-session' => true,
'use-modules' => true,
'use-extensions' => true ) )
static instance($settings=array())
Returns a shared instance of the eZScript class.
Definition: ezscript.php:1084
$showSQL = $options['sql'] ? true : false
$siteAccess = $options['siteaccess'] ? $options['siteaccess'] : false
do
Initial value:
{
static clearCache($idArray=array())
Definition: ezcontentobject.php:267