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 {
t.Helper()
cfg := config.Fulltext{}
cfg.Defaults(config.DefaultOpts{
Generate: true,
Monolithic: true,
})
cfg := config.Fulltext{
Enabled: true,
InMemory: true,
Language: "en",
}
if tempDir != "" {
cfg.IndexPath = config.Path(tempDir)
cfg.InMemory = false