commit | 2b69a8ffc37f624b9360899739d087b9a5cbad78 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Mon Jul 04 08:26:31 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Tue Jul 12 16:31:45 2022 +0200 |
tree | 6756a7009e126f1a7a0435b56c49651f4c3706d5 | |
parent | 31d90dd495aba7b5cb95b0f4a5ba49a213c16d4e [diff] |
Refactor provisioning of refresh parameter Refresh parameters map is never changing. Move the instantiation to the ctor and use this instance. Change-Id: If5ac7ce119b92cbf7571b7f42dc9f773e1f2fffa
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 //...