From 2c4a19ad6cb71065d31304370708c859b4f68f6d Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 29 May 2024 16:53:48 +0200 Subject: fix: nil pointer exception when (re-)indexing --- searchix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searchix.go') 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") } -- cgit 1.4.1