mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Improved full text search matching
This commit is contained in:
parent
eb3bebf20d
commit
f825e9fdc9
9 changed files with 82 additions and 54 deletions
|
@ -269,6 +269,11 @@ func (h *Handler) Update(w http.ResponseWriter, r *http.Request) {
|
|||
if d.Lifecycle == workflow.LifecycleLive {
|
||||
a, _ := h.Store.Attachment.GetAttachments(ctx, documentID)
|
||||
go h.Indexer.IndexDocument(ctx, d, a)
|
||||
|
||||
pages, _ := h.Store.Page.GetPages(ctx, d.RefID)
|
||||
for i := range pages {
|
||||
go h.Indexer.IndexContent(ctx, pages[i])
|
||||
}
|
||||
} else {
|
||||
go h.Indexer.DeleteDocument(ctx, d.RefID)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue