NAME

reindex - Rebuild the secondary index

SYNOPSIS

java -jar gerrit.war reindex
  -d <SITE_PATH>
  [--threads]
  [--changes-schema-version]
  [--verbose]
  [--list]
  [--index]

DESCRIPTION

Rebuilds the secondary index.

OPTIONS

--threads

Number of threads to use for indexing. Default is index.batchThreads

--changes-schema-version

Schema version to reindex; default is most recent version.

--verbose

Output debug information for each change.

--list

List available index names.

--index

Reindex only index with given name. This option can be supplied more than once to reindex multiple indices.

--disable-cache-stats

Disables printing cache statistics at the end of program to reduce noise. Defaulted when reindex is run from init on a new site.

CONTEXT

The secondary index must be enabled. See index.type.