Skip to the content
Documentation

exp:updatesearchindex

No ratings yet

Available before Exponential 6: the 4.x kernel had it already; the 4.x reference had no page for it.

Summary

Reindex all content objects in the search engine

Usage

./console exp:updatesearchindex [options]
php bin/php/updatesearchindex.php [options]

Help

The output of ./console help exp:updatesearchindex (the script run with --help), without the standard options:

Usage: bin/php/updatesearchindex.php [OPTION]...
Exponential search index updater.

Goes trough all objects and reindexes the meta data to the search engine
updatesearchindex.php


Options:
  --db-host=VALUE      Database host
  --db-user=VALUE      Database user
  --db-password=VALUE  Database password
  --db-database=VALUE  Database name
  --db-type=VALUE      Database driver, alias for --db-driver
  --db-driver=VALUE    Database driver
  --sql                Display sql queries
  --clean              Remove all search data before beginning indexing

Options

Option Value Description
--db-host required Database host
--db-user required Database user
--db-password required Database password
--db-database required Database name
--db-type required Database driver, alias for --db-driver
--db-driver required Database driver
--sql - Display sql queries
--clean - Remove all search data before beginning indexing

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/updatesearchindex.php, kernel/private/classes/commands/updatesearchindex.php

See also

Generated example: exp:updatesearchindex

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.