From 3fc5ee379d52db872e82f2e8b6a0b7629020e0c5 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 17 Mar 2014 18:35:32 +0900 Subject: [PATCH 1/3] Reformat index documentation Move the paragraphs about running the reindex program and the index names up to the top of the index section. It makes more sense to have them there, than in the middle of the setting descriptions. Change-Id: I875a66173f752554803ca95bc166fba0dfbcd315 --- Documentation/config-gerrit.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt index be6efc6e2a..ae6ec640b3 100644 --- a/Documentation/config-gerrit.txt +++ b/Documentation/config-gerrit.txt @@ -1828,6 +1828,13 @@ bundled with the .war will be used instead. The index section configures the secondary index. +Note that after enabling the secondary index, the index must be built +using the link:pgm-reindex.html[reindex program] before restarting the +Gerrit server. + +Open and closed changes are indexed in separate indexes named +'changes_open' and 'changes_closed' respectively. + [[index.type]]index.type:: + Type of secondary indexing employed by Gerrit. The supported @@ -1849,13 +1856,6 @@ query operators are routed through the standard SQL query engine. + By default, `SQL`. -After enabling the secondary index, the index must be built using -the link:pgm-reindex.html[reindex program] before restarting the -Gerrit server. - -Open and closed changes are indexed in separate indexes named -'changes_open' and 'changes_closed' respectively. - [[index.name.ramBufferSize]]index.name.ramBufferSize:: + Only used when the type is `LUCENE`. From 904db308cf5f697ac1cd09650a32616fc4bd47ad Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 17 Mar 2014 18:55:38 +0900 Subject: [PATCH 2/3] Add documentation of the index.threads setting Change-Id: I4e7b737791968123d78c19ef558327609ef11b30 --- Documentation/config-gerrit.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt index ae6ec640b3..742907cf47 100644 --- a/Documentation/config-gerrit.txt +++ b/Documentation/config-gerrit.txt @@ -1856,6 +1856,12 @@ query operators are routed through the standard SQL query engine. + By default, `SQL`. +[[index.threads]]index.threads:: ++ +Determines the number of threads to use for indexing. ++ +Defaults to 1 if not set, or set to a negative value. + [[index.name.ramBufferSize]]index.name.ramBufferSize:: + Only used when the type is `LUCENE`. From fc38806535bdfa4c3caa54261ec031fb5f637bea Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 18 Mar 2014 14:04:04 +0900 Subject: [PATCH 3/3] Fix typo in 'clone with commit-msg hook' command Change-Id: Ib468ac175db49352b5b66c5c53d15893ab66ba7b --- .../com/google/gerrit/client/download/DownloadCommandLink.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/download/DownloadCommandLink.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/download/DownloadCommandLink.java index 0c0f5291ec..a323a767df 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/download/DownloadCommandLink.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/download/DownloadCommandLink.java @@ -121,7 +121,7 @@ public abstract class DownloadCommandLink extends Anchor implements ClickHandler private final Project.NameKey project; public CloneWithCommitMsgHookCommandLink(Project.NameKey project) { - super(DownloadCommand.CHECKOUT, "clone with commmit-msg hook"); + super(DownloadCommand.CHECKOUT, "clone with commit-msg hook"); this.project = project; }