Documentation ¶
Index ¶
- type Scope
- func (s Scope) DeleteContent(ctx domain.RequestContext, pageID string) (err error)
- func (s Scope) DeleteDocument(ctx domain.RequestContext, ID string) (err error)
- func (s Scope) Documents(ctx domain.RequestContext, q search.QueryOptions) (results []search.QueryResult, err error)
- func (s Scope) IndexContent(ctx domain.RequestContext, p page.Page) (err error)
- func (s Scope) IndexDocument(ctx domain.RequestContext, doc doc.Document, a []attachment.Attachment) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope provides data access to MySQL.
func (Scope) DeleteContent ¶ added in v1.52.0
func (s Scope) DeleteContent(ctx domain.RequestContext, pageID string) (err error)
DeleteContent removes all search entries for specific document content.
func (Scope) DeleteDocument ¶
func (s Scope) DeleteDocument(ctx domain.RequestContext, ID string) (err error)
DeleteDocument removes all search entries for document.
func (Scope) Documents ¶
func (s Scope) Documents(ctx domain.RequestContext, q search.QueryOptions) (results []search.QueryResult, err error)
Documents searches the documents that the client is allowed to see, using the keywords search string, then audits that search. Visible documents include both those in the client's own organisation and those that are public, or whose visibility includes the client.
func (Scope) IndexContent ¶ added in v1.52.0
IndexContent adds search index entry for document context. Any existing document entries are removed.
func (Scope) IndexDocument ¶ added in v1.52.0
func (s Scope) IndexDocument(ctx domain.RequestContext, doc doc.Document, a []attachment.Attachment) (err error)
IndexDocument adds search index entries for document inserting title, tags and attachments as searchable items. Any existing document entries are removed.