reindex - Rebuild the secondary index


java -jar gerrit.war reindex [<OPTIONS>]


Rebuilds the secondary index.



Number of threads to use for indexing.


Recheck the mergeable flag on all open changes. For each open change, look up for which commit the mergeability check was last done and if this commit is different from the HEAD commit of the change’s destination branch, recompute the mergeability flag of the change by checking if the commit of the current patch set can be merged into the destination branch. Because this operation is computationally expensive, it is not enabled by default.


Schema version to reindex; default is most recent version.


Prefix for output; path for local disk index, or prefix for remote index.


Output debug information for each change.


Dry run. Don’t write anything to index.


The secondary index must be enabled. See index.type.