commit | 528ba6e135d9e280887337c412b1cb02fe562504 | [log] [tgz] |
---|---|---|
author | Kaushik Lingarkar <kaushik.lingarkar@linaro.org> | Tue Jan 24 15:28:56 2023 -0800 |
committer | Kaushik Lingarkar <kaushik.lingarkar@linaro.org> | Tue Jan 31 05:02:23 2023 +0000 |
tree | 2900a27d58ca8241475ecd9d45dea3ea9e7394d8 | |
parent | da5017c056c1f36f2f1206265a54388cac238391 [diff] |
Prune _source to only contain stored fields Gerrit queries fetch only stored fields from _source. So, pruning contents of _source to only contain those fields will help reduce index sizes. Although doing this introduces some limitations as described in [1], they don't apply for Gerrit uses-cases as we can always recreate the indices from notedb. On a Gerrit instance with ~4M changes, this change brings down the size of changes index from ~40G to ~25G. [1] https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-source-field.html#include-exclude Change-Id: Iffab01a1c0121f9f99ae0f3d10bc40842deb0598
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.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
See the setup instructions for how to install the index-elasticsearch module.
For further information and supported options, refer to the config documentation.
This libModule runs tests like a Gerrit in-tree plugin, using Bazelisk. See the test instructions for more details.