all repos — searchix @ 5f74928b831c3a82cf343d397929a08374d3beeb

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: force-recreate index when schema version updated

Alan Pearce
commit

5f74928b831c3a82cf343d397929a08374d3beeb

parent

2fcbebf4ce05c2c02b0c39cfa2236ef0ea0f9870

1 file changed, 1 insertion(+), 2 deletions(-)

changed files
M internal/index/search.gointernal/index/search.go
@@ -39,7 +39,6 @@ type ReadIndex struct {
index bleve.Index config *config.Config log *log.Logger - exists bool meta *meta.Meta }
@@ -52,7 +51,7 @@ Keyword string
} func (index *ReadIndex) Exists() bool { - return index.exists + return index.meta.Exists() } func (index *ReadIndex) LastUpdated() time.Time {