commit | 4f375d530bac60c9b2c14e37521f59d7f9a4ab2b | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Thu Jun 30 17:17:41 2022 +0200 |
committer | David Ostrovsky <david@ostrovsky.org> | Tue Jul 12 18:09:45 2022 +0200 |
tree | d82675ea94dda1d975eeff669e6a7ff091508be4 | |
parent | 2b69a8ffc37f624b9360899739d087b9a5cbad78 [diff] |
Do not wait for refresh when AutoFlush.DISABLED We can roughly map Lucene's "flush" concept to the Elasticsearch "refresh" concept. Previously this module would ignore the value of AutoFlush, but now we use it to set the value of the refresh parameter in write API requests to match the boolean value of AutoFlush (ENABLED=true, DISABLED=false). Change-Id: I719ab0d39fe58188f5361bbcf9b282b42cc2cfaf
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 //...