diff options
author | Alan Pearce | 2024-06-09 17:54:57 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-09 17:54:57 +0200 |
commit | 63599c719d8e4e09548546bb366a849ef40c602b (patch) | |
tree | 549336370f77a8a1a3c626fe6bf0118f32baef59 /cmd/searchix-web | |
parent | 789d0079f84017ddafad763ffba9aadbcd6aa6da (diff) | |
download | searchix-63599c719d8e4e09548546bb366a849ef40c602b.tar.lz searchix-63599c719d8e4e09548546bb366a849ef40c602b.tar.zst searchix-63599c719d8e4e09548546bb366a849ef40c602b.zip |
feat: add low-memory mode
Diffstat (limited to 'cmd/searchix-web')
-rw-r--r-- | cmd/searchix-web/main.go | 5 |
1 files changed, 3 insertions, 2 deletions
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) |