diff options
author | Alan Pearce | 2024-05-16 21:00:35 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-16 21:00:35 +0200 |
commit | d558039919b6198a246a6a3fd007276191cb4b2f (patch) | |
tree | e6c27f2d4c5091c5c525dcc6a124ce46320cf25c /searchix.go | |
parent | 9b430ab18dc024058ea9c039fb64af0a3d5e3529 (diff) | |
download | searchix-d558039919b6198a246a6a3fd007276191cb4b2f.tar.lz searchix-d558039919b6198a246a6a3fd007276191cb4b2f.tar.zst searchix-d558039919b6198a246a6a3fd007276191cb4b2f.zip |
fix: rebuild index when --replace is specified
Diffstat (limited to 'searchix.go')
-rw-r--r-- | searchix.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |