summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeven Jacmenović <neven@nivas.hr>2017-06-09 23:17:44 +0200
committerNeven Jacmenović <neven@nivas.hr>2017-06-09 23:17:44 +0200
commit660cac0f7b4a6d731d07ac4f9ac6489f351eb09c (patch)
treeca35c4913d446cac83b91796ba7d559d660cbbba
parent8e7e9dab59a951b6d129f48f18f4d14f12b0ec77 (diff)
delayed search index initialization so search can work with addons
-rw-r--r--system/db/init.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/system/db/init.go b/system/db/init.go
index 65d3b74..8bd5cad 100644
--- a/system/db/init.go
+++ b/system/db/init.go
@@ -93,30 +93,14 @@ func Init() {
// 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() {
- log.Println("init db gofunc START ..............................................................................")
-
- // if len(item.Types) == 0 {
- // log.Println("item.types = 0")
- // time.Sleep(time.Second * 1)
- // }
-
- log.Printf("item.Types: %#v", item.Types)
-
for t := range item.Types {
err := search.MapIndex(t)
- log.Printf("item.Types in gofunc: %#v", t)
- log.Printf("err: %#v", err)
if err != nil {
log.Fatalln(err)
return
}
-
SortContent(t)
-
}
-
- log.Println("init db gofunc END ..............................................................................")
-
}
// SystemInitComplete checks if there is at least 1 admin user in the db which