From 3e1f7ca68827bc21651f725968ad8d540f92e85d Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 13 Apr 2022 09:32:55 +0200 Subject: [PATCH] Add support for Postgres FTS in REST Server Nix module Currently only Solr is supported. --- nix/module-server.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nix/module-server.nix b/nix/module-server.nix index 0e794290..bdd25e73 100644 --- a/nix/module-server.nix +++ b/nix/module-server.nix @@ -55,6 +55,7 @@ let }; full-text-search = { enabled = false; + backend = "solr"; solr = { url = "http://localhost:8983/solr/docspell"; commit-within = 1000; @@ -545,10 +546,13 @@ in { The full-text search feature can be disabled. It requires an additional index server which needs additional memory and disk 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 { type = types.submodule({ options = {