about summary refs log tree commit diff stats
path: root/searchix.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-29 16:53:48 +0200
committerAlan Pearce2024-05-29 16:53:48 +0200
commit2c4a19ad6cb71065d31304370708c859b4f68f6d (patch)
treebf9a5561066fd62198c7efcd2c15bf69e14ce2f7 /searchix.go
parent10774c3b734d4b32f34a943e8a71a27b357b2ac5 (diff)
downloadsearchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.tar.lz
searchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.tar.zst
searchix-2c4a19ad6cb71065d31304370708c859b4f68f6d.zip
fix: nil pointer exception when (re-)indexing
Diffstat (limited to 'searchix.go')
-rw-r--r--searchix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchix.go b/searchix.go
index c10eb6a..f91fe48 100644
--- a/searchix.go
+++ b/searchix.go
@@ -64,7 +64,7 @@ func (s *Server) SetupIndex(update bool, replace bool) error {
 			"update",
 			update,
 		)
-		err = importer.Start(s.cfg, write, replace, nil)
+		err = importer.Start(s.cfg, write, replace || update, nil)
 		if err != nil {
 			return errors.Wrap(err, "Failed to build index")
 		}