2015-06-29 16:04:59 -04:00
|
|
|
= gerrit index start
|
|
|
|
|
|
|
|
== NAME
|
2018-09-26 12:31:46 -07:00
|
|
|
gerrit index start - Start the online indexer.
|
2015-06-29 16:04:59 -04:00
|
|
|
|
|
|
|
== SYNOPSIS
|
2016-06-23 17:07:37 +02:00
|
|
|
[verse]
|
2015-06-29 16:04:59 -04:00
|
|
|
--
|
2016-05-21 08:59:44 -07:00
|
|
|
_ssh_ -p <port> <host> _gerrit index start_ <INDEX> [--force]
|
2015-06-29 16:04:59 -04:00
|
|
|
--
|
|
|
|
|
|
|
|
== DESCRIPTION
|
|
|
|
Gerrit supports online index schema upgrades. When starting Gerrit for the first
|
|
|
|
time after an upgrade that requires an index schema upgrade, the online indexer
|
|
|
|
will be started. If the schema upgrade is a success, the new index will be
|
|
|
|
activated and if it fails, a statement in the logs will be printed with the
|
|
|
|
number of successfully/failed indexed changes.
|
|
|
|
|
|
|
|
This command allows restarting the online indexer without having to restart
|
|
|
|
Gerrit. This command will not start the indexer if it is already running or if
|
|
|
|
the active index is the latest.
|
|
|
|
|
2016-08-15 09:24:03 -07:00
|
|
|
The link:cmd-show-queue.html[show-queue] command provides online index status.
|
|
|
|
|
2015-06-29 16:04:59 -04:00
|
|
|
== ACCESS
|
|
|
|
Caller must be a member of the privileged 'Administrators' group.
|
|
|
|
|
|
|
|
== SCRIPTING
|
|
|
|
This command is intended to be used in scripts.
|
|
|
|
|
2016-07-18 11:43:27 -07:00
|
|
|
== OPTIONS
|
|
|
|
<INDEX>::
|
|
|
|
Restart the online indexer on this secondary index.
|
|
|
|
Currently supported values:
|
|
|
|
* changes
|
|
|
|
* accounts
|
2018-03-27 19:45:40 +01:00
|
|
|
* groups
|
|
|
|
* projects
|
2016-07-18 11:43:27 -07:00
|
|
|
|
2016-05-21 08:59:44 -07:00
|
|
|
--force::
|
|
|
|
Force an online re-index.
|
|
|
|
|
2016-07-18 11:43:27 -07:00
|
|
|
== EXAMPLES
|
2016-05-21 08:59:44 -07:00
|
|
|
Start the online indexer for the 'changes' index:
|
2016-07-18 11:43:27 -07:00
|
|
|
|
|
|
|
----
|
2018-09-26 12:31:46 -07:00
|
|
|
$ ssh -p 29418 review.example.com gerrit index start changes
|
2016-07-18 11:43:27 -07:00
|
|
|
----
|
|
|
|
|
2015-06-29 16:04:59 -04:00
|
|
|
GERRIT
|
|
|
|
------
|
|
|
|
Part of link:index.html[Gerrit Code Review]
|
|
|
|
|
|
|
|
SEARCHBOX
|
|
|
|
---------
|