commit | db42aed7078def8553fd2071409edaae5abc1a86 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Fri May 13 18:02:48 2022 +0100 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Fri May 13 18:04:59 2022 +0100 |
tree | 3d387d63b16e150c5d291634f4ae113981777724 | |
parent | 39831de3f503db7a6ecb2972c6786e019ab67973 [diff] |
Adapt to the latest Index interface in stable-3.5 Change I140c88125b has introduced an additional insert() method for optimising the off-line reindex for Lucene. Map the insert() method with replace() which would produce the same effect of creating a index entry. Change-Id: I6f2e6c45bf2cf68ebd7d8dc3fa19083c59bced83
Indexing backend libModule for Gerrit Code Review based on ElasticSearch.
This module was original part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
Install the index-elasticsearch.jar into the $GERRIT_SITE/lib
directory.
Add the index-elasticsearch module to $GERRIT_SITE/etc/gerrit.config
as follows:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ElasticIndexModule
When installing the module on Gerrit replicas, use following example:
[gerrit] installIndexModule = com.google.gerrit.elasticsearch.ReplicaElasticIndexModule
For further information and supported options, refer to config documentation.
Gerrit acceptance tests allow the execution with an alternate implementation of the indexing backend using the GERRIT_INDEX_MODULE
environment variable.
bazel test --test_env=GERRIT_INDEX_MODULE=com.google.gerrit.elasticsearch.ElasticIndexModule //...