From 63599c719d8e4e09548546bb366a849ef40c602b Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 9 Jun 2024 17:54:57 +0200 Subject: feat: add low-memory mode --- cmd/searchix-web/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/searchix-web/main.go') diff --git a/cmd/searchix-web/main.go b/cmd/searchix-web/main.go index 5ece329..cea20a2 100644 --- a/cmd/searchix-web/main.go +++ b/cmd/searchix-web/main.go @@ -56,8 +56,9 @@ func main() { } err = s.SetupIndex(&searchix.IndexOptions{ - Update: *update, - Replace: *replace, + Update: *update, + Replace: *replace, + LowMemory: cfg.Importer.LowMemory, }) if err != nil { log.Fatalf("Failed to setup index: %v", err) -- cgit 1.4.1