commit | 572a92cd304642ff3bf22737ba48dc992b165cbe | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Wed May 18 08:03:35 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Tue Jun 21 10:21:27 2022 +0200 |
tree | f72fbda724b9e7f1981e685b81186a5260434607 | |
parent | 39831de3f503db7a6ecb2972c6786e019ab67973 [diff] | |
parent | 3e6de6fcb52ba8cf6820e694c0d0a4a10f1289d2 [diff] |
Merge branch 'stable-3.5' into stable-3.6 * stable-3.5: Remove dependency on //java/com/google/gerrit/proto Restore dockerized integration tests Adapt Bazel build and deps to latest stable-3.5 Adapt to the latest Index interface in stable-3.5 Since Ia64a599440 TimestampRangePredicate is migrated to use Instant instead of obsolete Date class. Adapt the ElasticQueryBuilder for this migration. ElasticV7QueryChangesTest overrides byTopic() method to adjust to ES behaviour for "prefixtopic" predicate. "prefixtopic" predicate was added in release 3.6 and that's why this is done in the merge commit. Change-Id: Ie7c4ba0d3ddb4c50a79f51bb328fbaefc15df7ed
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 //...