Add Meilisearch indexer (#444)

هذا الالتزام موجود في:
Thomas Miceli
2025-03-19 23:28:04 +01:00
ملتزم من قبل GitHub
الأصل dbdfcd4e85
التزام efba783c56
17 ملفات معدلة مع 373 إضافات و102 حذوفات

عرض الملف

@@ -124,9 +124,9 @@ func Initialize(ctx *cli.Context) {
log.Error().Err(err).Msg("Failed to initialize WebAuthn")
}
if config.C.IndexEnabled {
log.Info().Msg("Index directory: " + filepath.Join(homePath, config.C.IndexDirname))
index.Init(filepath.Join(homePath, config.C.IndexDirname))
index.DepreactionIndexDirname()
if index.IndexEnabled() {
index.NewIndexer(index.IndexType())
}
}
@@ -136,7 +136,7 @@ func shutdown() {
log.Error().Err(err).Msg("Failed to close database")
}
if config.C.IndexEnabled {
if index.IndexEnabled() {
log.Info().Msg("Shutting down index...")
index.Close()
}