aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-09-09 17:19:29 +0200
committerTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-09-09 17:19:29 +0200
commitaf9a204cc0b997bf0b7fd6ea434a7c04157bdf28 (patch)
tree86a4aeb041a0320cda0461371f9ceb9c474f0551 /setup
parente8687f6f8255a978a8200b19c7a28581397ad455 (diff)
Only verify if fulltext indexing is enabled
Diffstat (limited to 'setup')
-rw-r--r--setup/config/config_syncapi.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup/config/config_syncapi.go b/setup/config/config_syncapi.go
index 196afb82..c890b005 100644
--- a/setup/config/config_syncapi.go
+++ b/setup/config/config_syncapi.go
@@ -59,6 +59,9 @@ func (f *Fulltext) Defaults(opts DefaultOpts) {
}
func (f *Fulltext) Verify(configErrs *ConfigErrors, isMonolith bool) {
+ if !f.Enabled {
+ return
+ }
checkNotEmpty(configErrs, "syncapi.fulltext.index_path", string(f.IndexPath))
checkNotEmpty(configErrs, "syncapi.fulltext.language", f.Language)
}