Add documentation section for secondary index configuration

Add a new `index` section and document the `index.type` flag.

Add a link to the new section from the `reindex` program documentation.

Change-Id: I52fd25d07352276002898482e8e205de43cb08bc
This commit is contained in:
David Pursehouse 2013-08-23 16:17:18 +09:00
parent 2f463e337d
commit 6d458430ac
2 changed files with 28 additions and 1 deletions

View File

@ -1783,6 +1783,32 @@ If not absolute, the path is resolved relative to `$site_path`.
If the file doesn't exist or can't be read the default robots.txt file If the file doesn't exist or can't be read the default robots.txt file
bundled with the .war will be used instead. bundled with the .war will be used instead.
[[index]]Section index
~~~~~~~~~~~~~~~~~~~~~~
The index section configures the secondary index.
[[index.type]]index.type::
+
Type of secondary indexing employed by Gerrit. The supported
values are:
+
* `LUCENE`
+
A link:http://lucene.apache.org/[Lucene] index is used.
+
* `SOLR`
+
A link:http://lucene.apache.org/solr/[Solr] index is used.
+
* `SQL`
+
No secondary index. Not all query operators are supported. Other
query operators are routed through the standard SQL query engine.
+
By default, `SQL`.
[[ldap]]Section ldap [[ldap]]Section ldap
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~

View File

@ -33,7 +33,8 @@ OPTIONS
CONTEXT CONTEXT
------- -------
The secondary index must be enabled. The secondary index must be enabled. See
link:config-gerrit.html#index.type[index.type].
GERRIT GERRIT
------ ------