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:
parent
3621e2fb79
commit
d04becc1a3
5 changed files with 13 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue