commit | 3e6de6fcb52ba8cf6820e694c0d0a4a10f1289d2 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Mon May 16 14:24:20 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Mon May 16 14:27:38 2022 +0200 |
tree | c3e59232a3e9eb3c109317e6c60181340ff16c73 | |
parent | 53a86ea9c43eb4b304e555e837a97627ad9548ee [diff] |
Remove dependency on //java/com/google/gerrit/proto In I9926fdce6d //java/com/google/gerrit/proto was exposed in the plugin API so that this lib module doesn't need to depend on it any more. This removes 1MB of size from the final module artifact, as protobuf library is now also omitted from the shaded module jar file. Change-Id: I217feca153e3900cc04831689faca0ce7f0fa237
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 //...