ez.no / exponential / documentation / development / scripting / supplied scripts / update search index
These documentation pages are no longer maintained. Please visit the new documentation site.
updatesearchindex.php is a script for updating the whole search index. It's located under update/common/scripts/. This script is only nessesary to run once for the whole site. ( No need to run per siteaccess )
Requires :
PHP CLI
To rebuild the searchindex of your site, enter the root folder of your Exponential installation, and run:
php -C update/common/scripts/updatesearchindex.php
The script will output current status of the reindexing:
[ez@localhost exponential]$ php -C update/common/scripts/updatesearchindex.php Starting object re-indexing Number of objects to index: 37 ..................................... 100% done
The following options are available :
--db-user=VALUE Database user --db-password=VALUE Database password --db-database=VALUE Database name --db-driver=VALUE Database driver --sql Display sql queries -- clean Remove all search data before beginning indexing
It's not recommended to use any of these unless you know what you're doing.
Comments
It didn't work with me
John Mina
Thursday 15 July 2004 1:27:23 pm
and when i made the instructions up there
it dind't work either?
What do you think
how could i solve it