blob: 769360d5a69ec73daf9f1156e38024665e8b235c [file] [log] [blame]
Hugo Arès3a593352015-06-29 16:04:59 -04001= gerrit index start
2
3== NAME
4gerrit index start - Start the online indexer
5
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
37
Khai Dob9a5d002016-05-21 08:59:44 -070038--force::
39 Force an online re-index.
40
Khai Dod9cda092016-07-18 11:43:27 -070041== EXAMPLES
Khai Dob9a5d002016-05-21 08:59:44 -070042Start the online indexer for the 'changes' index:
Khai Dod9cda092016-07-18 11:43:27 -070043
44----
45 $ ssh -p 29418 review.example.com gerrit index start changes
46----
47
Hugo Arès3a593352015-06-29 16:04:59 -040048GERRIT
49------
50Part of link:index.html[Gerrit Code Review]
51
52SEARCHBOX
53---------