mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Only verify if fulltext indexing is enabled
This commit is contained in:
parent
e8687f6f82
commit
af9a204cc0
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ func (f *Fulltext) Defaults(opts DefaultOpts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Fulltext) Verify(configErrs *ConfigErrors, isMonolith bool) {
|
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.index_path", string(f.IndexPath))
|
||||||
checkNotEmpty(configErrs, "syncapi.fulltext.language", f.Language)
|
checkNotEmpty(configErrs, "syncapi.fulltext.language", f.Language)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue