doc: add option and example section to ssh index command

Add an options and example section to index start and index activate
commands.  Update to include 'accounts' index as a valid value.

From reindex command:
 ~/gerrit: java -jar buck-out/gen/gerrit/gerrit.war reindex --index bogus -d gerrit_testsite
 fatal: invalid index name(s): [bogus] available indices are: [accounts, changes]

Change-Id: I0500fcf1a6bc524e58fb6d56160a75599afd3ee1
This commit is contained in:
Khai Do
2016-07-18 11:43:27 -07:00
parent 7d3f1a5986
commit d9cda09116
2 changed files with 30 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ gerrit index activate - Activate the latest index version available
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit index activate <index>_
_ssh_ -p <port> <host> _gerrit index activate <INDEX>_
--
== DESCRIPTION
@@ -19,15 +19,26 @@ number of successfully/failed indexed changes.
This command allows to activate the latest index even if there were some
failures.
The <index> argument controls which secondary index is activated. Currently, the
only supported value is "changes".
== ACCESS
Caller must be a member of the privileged 'Administrators' group.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<INDEX>::
The index to activate.
Currently supported values:
* changes
* accounts
== EXAMPLES
Activate the latest change index:
----
$ ssh -p 29418 review.example.com gerrit activate changes
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]

View File

@@ -6,7 +6,7 @@ gerrit index start - Start the online indexer
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit index start_ <index>
_ssh_ -p <port> <host> _gerrit index start_ <INDEX>
--
== DESCRIPTION
@@ -20,15 +20,26 @@ 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.
The <index> argument controls which secondary index is started. Currently, the
only supported value is "changes".
== ACCESS
Caller must be a member of the privileged 'Administrators' group.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<INDEX>::
Restart the online indexer on this secondary index.
Currently supported values:
* changes
* accounts
== EXAMPLES
Start the online indexer for the changes index:
----
$ ssh -p 29418 review.example.com gerrit index start changes
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]