feat: enable index path to be configured
1 file changed, 2 insertions(+), 1 deletion(-)
changed files
M import/main.go → import/main.go
@@ -22,6 +22,7 @@ ConfigFile string `conf:"short:c"` LogLevel slog.Level `conf:"default:INFO"` Timeout time.Duration `conf:"default:30m,help:maximum time to wait for all fetchers and importers combined"` Replace bool `conf:"default:false,help:whether to remove existing database, if exists"` + IndexPath string `conf:"default:data/index.bleve"` } func main() {@@ -50,7 +51,7 @@ return } - indexer, err := search.NewIndexer(cfg.DataPath, runtimeConfig.Replace) + indexer, err := search.NewIndexer(runtimeConfig.IndexPath, runtimeConfig.Replace) if err != nil { log.Fatalf("Failed to create indexer: %v", err) }