all repos — searchix @ 21e9e778cc6be3c8717cd4286bedd17f2b22282a

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

feat: add offline flag to reindex (mostly for dev)

Alan Pearce
commit

21e9e778cc6be3c8717cd4286bedd17f2b22282a

parent

11a0ae77d2e66bcdd0a65c71a160dcc5d9d64e56

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

changed files
M internal/index/indexer.gointernal/index/indexer.go
@@ -210,7 +210,6 @@
var expectedDataFiles = []string{ metaBaseName, indexBaseName, - "manpage-urls.json", } func deleteIndex(root *file.Root) error {
@@ -224,9 +223,7 @@
return nil } -func OpenOrCreate( - options *Options, -) (*ReadIndex, *WriteIndex, bool, error) { +func OpenOrCreate(options *Options) (*ReadIndex, *WriteIndex, bool, error) { var err error bleve.SetLog(zap.NewStdLog(options.Logger.Named("bleve").GetLogger()))