Merge pull request #1512 from LeSuisse/nix-rest-module-fts-postgres

Add support for Postgres FTS in REST Server Nix module
This commit is contained in:
eikek
2022-04-13 19:04:13 +02:00
committed by GitHub

View File

@ -55,6 +55,7 @@ let
}; };
full-text-search = { full-text-search = {
enabled = false; enabled = false;
backend = "solr";
solr = { solr = {
url = "http://localhost:8983/solr/docspell"; url = "http://localhost:8983/solr/docspell";
commit-within = 1000; commit-within = 1000;
@ -545,10 +546,13 @@ in {
The full-text search feature can be disabled. It requires an The full-text search feature can be disabled. It requires an
additional index server which needs additional memory and disk additional index server which needs additional memory and disk
space. It can be enabled later any time. space. It can be enabled later any time.
Currently the SOLR search platform is supported.
''; '';
}; };
backend = mkOption {
type = types.str;
default = defaults.full-text-search.backend;
description = "The backend to use, either solr or postgresql";
};
solr = mkOption { solr = mkOption {
type = types.submodule({ type = types.submodule({
options = { options = {