blob: d1a02b362f250953f5242ad697f727991db95622 [file] [log] [blame]
Hugo Arès3a593352015-06-29 16:04:59 -04001= gerrit index start
2
3== NAME
David Shevitze369eee2018-09-26 12:31:46 -07004gerrit index start - Start the online indexer.
Hugo Arès3a593352015-06-29 16:04:59 -04005
6== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Hugo Arès3a593352015-06-29 16:04:59 -04008--
Khai Dob9a5d002016-05-21 08:59:44 -07009_ssh_ -p <port> <host> _gerrit index start_ <INDEX> [--force]
Hugo Arès3a593352015-06-29 16:04:59 -040010--
11
12== DESCRIPTION
13Gerrit supports online index schema upgrades. When starting Gerrit for the first
14time after an upgrade that requires an index schema upgrade, the online indexer
15will be started. If the schema upgrade is a success, the new index will be
16activated and if it fails, a statement in the logs will be printed with the
17number of successfully/failed indexed changes.
18
19This command allows restarting the online indexer without having to restart
20Gerrit. This command will not start the indexer if it is already running or if
21the active index is the latest.
22
Khai Doe0169d12016-08-15 09:24:03 -070023The link:cmd-show-queue.html[show-queue] command provides online index status.
24
Hugo Arès3a593352015-06-29 16:04:59 -040025== ACCESS
26Caller must be a member of the privileged 'Administrators' group.
27
28== SCRIPTING
29This command is intended to be used in scripts.
30
Khai Dod9cda092016-07-18 11:43:27 -070031== OPTIONS
32<INDEX>::
33 Restart the online indexer on this secondary index.
34 Currently supported values:
35 * changes
36 * accounts
David Pursehouse9f90c7c2018-03-27 19:45:40 +010037 * groups
38 * projects
Khai Dod9cda092016-07-18 11:43:27 -070039
Khai Dob9a5d002016-05-21 08:59:44 -070040--force::
41 Force an online re-index.
42
Khai Dod9cda092016-07-18 11:43:27 -070043== EXAMPLES
Khai Dob9a5d002016-05-21 08:59:44 -070044Start the online indexer for the 'changes' index:
Khai Dod9cda092016-07-18 11:43:27 -070045
46----
David Shevitze369eee2018-09-26 12:31:46 -070047$ ssh -p 29418 review.example.com gerrit index start changes
Khai Dod9cda092016-07-18 11:43:27 -070048----
49
Hugo Arès3a593352015-06-29 16:04:59 -040050GERRIT
51------
52Part of link:index.html[Gerrit Code Review]
53
54SEARCHBOX
55---------