Fix version check regexes and allow any 7.x and 8.x versions

The regex patterns were glob expressions but were used to create Java
regular expressions which is wrong. Fix the patterns.

Relax the rules to allow any ElasticSearch 7.x and 8.x server version
since the low-level REST client documentation says [1]:

"There is no relation between the client version and the Elasticsearch
version that the client can communicate with. The low-level REST
client is compatible with all Elasticsearch versions."

Also allow non-releases like alpha, beta or release candidates.

[1] https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/java-rest-low-usage-maven.html

Change-Id: Ia14678200a9b92bbe195b176321e34e2bba7b92d
11 files changed
tree: 97e0702912a1d92e65ea7359878e70f2fa6e072a
  1. src/
  2. BUILD
  3. external_plugin_deps.bzl
  4. Jenkinsfile
  5. LICENSE
  6. README.md
README.md

Index backend for Gerrit, based on ElasticSearch

Indexing backend libModule for Gerrit Code Review based on ElasticSearch.

This module was originally part of Gerrit core and then extracted into a separate component from v3.5.0-rc3 as part of Change-Id: Ib7b5167ce.

Note that, ElasticSearch source code is no longer Apache 2.0-licensed for versions 7.11 and newer. See ElasticSearch 2021 license change for more information.

How to build

This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.

Setup

See the setup instructions for how to install the index-elasticsearch module.

For further information and supported options, refer to the config documentation.

Integration test

This libModule runs tests like a Gerrit in-tree plugin, using Bazelisk. See the test instructions for more details.