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

Make search re-indexing multi-tenant aware

Makes things easier when having to reindex in multi-tenant deployments.
This commit is contained in:
Harvey Kandola 2018-10-06 17:23:55 +01:00
parent 85b3f6e8ee
commit 8eb930d281
7 changed files with 731 additions and 684 deletions

View file

@ -290,7 +290,9 @@ type GroupStorer interface {
// MetaStorer provide specialist methods for global administrators.
type MetaStorer interface {
GetDocumentsID(ctx domain.RequestContext) (documents []string, err error)
GetDocumentPages(ctx domain.RequestContext, documentID string) (p []page.Page, err error)
Documents(ctx domain.RequestContext) (documents []string, err error)
Document(ctx domain.RequestContext, documentID string) (d doc.Document, err error)
Pages(ctx domain.RequestContext, documentID string) (p []page.Page, err error)
Attachments(ctx domain.RequestContext, docID string) (a []attachment.Attachment, err error)
SearchIndexCount(ctx domain.RequestContext) (c int, err error)
}