Only verify if fulltext indexing is enabled

This commit is contained in:
Till Faelligen 2022-09-09 17:19:29 +02:00 committed by 0x1a8510f2
parent cb1d38787d
commit a30ed0318c
No known key found for this signature in database
GPG key ID: 1C692E355D76775D

View file

@ -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)
}