Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

Updating the search index

To add content to the search engine index, run the "updatesearchindexsolr.php" script from your <eZ Publish root location>/ezpublish_legacy/ folder, using the administration siteaccess as the specified siteaccess. For example:

php extension/ezfind/bin/php/updatesearchindexsolr.php -s <admin siteaccess> --php-exec=php --conc=2

The indexing process typically indexes at a rate of 5 to 15 objects per second. However, if you are using external filters to convert binary files to plain text, this may add more processing time.

The --php-exec parameter must specify the path to the PHP executable used. This parameter is used to start sub-processes in the indexing operation. This is done to prevent internal memory and reference problems.

The --conc parameter specifies how many concurrent processes should be used to index the content. This number should be equal to the number of processor cores on the server.

An optional parameter is --clean which will delete all existing entries (and also the spell check index terms in the default configuration)

Important Note

Keep in mind that eZ Find currently does not support the following:

  • re-index of reverse related content upon re-publishing of content.
  • re-index of content upon unhiding of subtree.
  • re-index of content upon changes of sections.
  • re-index subtree upon moving location
    • This can be resolved by :
      • executing the bin/php/updatesearchindex.php script

Ricardo Correia (05/02/2013 12:17 pm)

Sarah Haïm-Lubczanski (21/02/2014 4:01 pm)

Ricardo Correia, Sarah Haïm-Lubczanski


Comments

There are no comments.