gerrit/Documentation/cmd-index-changes-in-project.txt
Patrick Hiesel 20d981e1d9 Implement REST endpoint to reindex a project
We recently added a project index to Gerrit. This complements the
existing set of indices (change, account, group). For this new index we
want to offer a REST endpoint as well to reindex a project with the
option to recusively reindex the children as well.

Unfortunately, we previously bound /index to the endpoint that reindexes
all changes in the project. This commit changes that binding to
/index.changes.
We make an effort to keep the REST API stable, but this is just an
administrative endpoint and it seems to be a better fit to just
repurpose the endpoint name.

This commit adds tests and methods for the Java extension API.

Change-Id: I2b3bb9f38c94938b98059da193e80289996a4a41
2018-07-04 13:18:16 +02:00

38 lines
752 B
Plaintext

= gerrit index changes in project
== NAME
gerrit index changes in project - Index all the changes in one or more projects.
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit index changes-in-project_ <PROJECT> [<PROJECT> ...]
--
== DESCRIPTION
Index all the changes in one or more projects.
== ACCESS
Caller must have the 'Maintain Server' capability.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<PROJECT>::
Required; name of the project to be indexed.
== EXAMPLES
Index all changes in projects MyProject and NiceProject.
----
$ ssh -p 29418 user@review.example.com gerrit index changes-in-project MyProject NiceProject
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------