1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 20:15:26 +02:00

Improved backup/restore compatibility between DB providers

This commit is contained in:
HarveyKandola 2019-06-25 15:26:38 +01:00
parent 3621e2fb79
commit d04becc1a3
5 changed files with 13 additions and 5 deletions

View file

@ -38,6 +38,7 @@ func (h *Handler) Reindex(w http.ResponseWriter, r *http.Request) {
return
}
h.Runtime.Log.Info("Building search index")
go h.Indexer.Rebuild(ctx)
response.WriteEmpty(w)

View file

@ -129,7 +129,7 @@ func (m *Indexer) Rebuild(ctx domain.RequestContext) {
return
}
m.runtime.Log.Info(fmt.Sprintf("Search re-index started for %d documents", len(docs)))
m.runtime.Log.Info(fmt.Sprintf("Search re-indexing started for %d documents", len(docs)))
for i := range docs {
d := docs[i]
@ -163,7 +163,7 @@ func (m *Indexer) Rebuild(ctx domain.RequestContext) {
}
}
m.runtime.Log.Info(fmt.Sprintf("Search re-index finished for %d documents", len(docs)))
m.runtime.Log.Info(fmt.Sprintf("Search re-indexing finished for %d documents", len(docs)))
}
// FilterCategoryProtected removes search results that cannot be seen by user