From d558039919b6198a246a6a3fd007276191cb4b2f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 16 May 2024 21:00:35 +0200 Subject: fix: rebuild index when --replace is specified --- searchix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchix.go') diff --git a/searchix.go b/searchix.go index 9917969..59235cd 100644 --- a/searchix.go +++ b/searchix.go @@ -81,7 +81,7 @@ func main() { log.Fatalf("Failed to open or create index: %v", err) } - if !exists { + if !exists || *replace { slog.Info("Index doesn't exist. Starting build job...") err = importer.Start(cfg, write, *replace) if err != nil { -- cgit 1.4.1