This commit is contained in:
Till Faelligen 2022-09-27 17:32:58 +02:00
parent 392e70e26a
commit 292178ad0f
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -27,11 +27,11 @@ import (
func mustOpenIndex(t *testing.T, tempDir string) *fulltext.Search { func mustOpenIndex(t *testing.T, tempDir string) *fulltext.Search {
t.Helper() t.Helper()
cfg := config.Fulltext{} cfg := config.Fulltext{
cfg.Defaults(config.DefaultOpts{ Enabled: true,
Generate: true, InMemory: true,
Monolithic: true, Language: "en",
}) }
if tempDir != "" { if tempDir != "" {
cfg.IndexPath = config.Path(tempDir) cfg.IndexPath = config.Path(tempDir)
cfg.InMemory = false cfg.InMemory = false