diff --git a/system/db/init.go b/system/db/init.go index 4f35bbc9..48ae6410 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -84,23 +84,11 @@ func Init() { if err != nil { log.Fatalln("Failed to invalidate cache.", err) } - - go func() { - for t := range item.Types { - err := search.MapIndex(t) - if err != nil { - log.Fatalln(err) - return - } - - SortContent(t) - } - }() } // InitSearchIndex initializes Search Index for search to be functional // This was moved out of db.Init and put to main(), because addon checker was initializing db together with -// search indexing initialisation in time when there were no item.Types defined so search index was always +// search indexing initialisation in time when there were no item.Types defined so search index was always // empty when using addons. We still have no guarentee whatsoever that item.Types is defined // Should be called from a goroutine after SetContent is successful (SortContent requirement) func InitSearchIndex() {