blob: 0bbf30849477201029a70a6ebe25608e059248b8 [file] [log] [blame]
Hugo Arès47f15be2015-06-30 10:36:08 -04001= gerrit index activate
2
3== NAME
David Shevitzcc187b32018-09-24 21:28:19 -07004gerrit index activate - Activate the latest index version available.
Hugo Arès47f15be2015-06-30 10:36:08 -04005
6== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Hugo Arès47f15be2015-06-30 10:36:08 -04008--
Khai Dod9cda092016-07-18 11:43:27 -07009_ssh_ -p <port> <host> _gerrit index activate <INDEX>_
Hugo Arès47f15be2015-06-30 10:36:08 -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 to activate the latest index even if there were some
20failures.
21
Hugo Arès47f15be2015-06-30 10:36:08 -040022== ACCESS
23Caller must be a member of the privileged 'Administrators' group.
24
25== SCRIPTING
26This command is intended to be used in scripts.
27
Khai Dod9cda092016-07-18 11:43:27 -070028== OPTIONS
29<INDEX>::
30 The index to activate.
31 Currently supported values:
32 * changes
33 * accounts
Borui Taoab5ca3b2018-04-16 20:07:20 -040034 * groups
Khai Dod9cda092016-07-18 11:43:27 -070035
36== EXAMPLES
37Activate the latest change index:
38
39----
David Shevitzcc187b32018-09-24 21:28:19 -070040$ ssh -p 29418 review.example.com gerrit index activate changes
Khai Dod9cda092016-07-18 11:43:27 -070041----
42
Hugo Arès47f15be2015-06-30 10:36:08 -040043GERRIT
44------
45Part of link:index.html[Gerrit Code Review]
46
47SEARCHBOX
48---------