Documentation ¶
Index ¶
- type Indexer
- func (m *Indexer) DeleteContent(ctx domain.RequestContext, pageID string)
- func (m *Indexer) DeleteDocument(ctx domain.RequestContext, ID string)
- func (m *Indexer) IndexContent(ctx domain.RequestContext, p page.Page)
- func (m *Indexer) IndexDocument(ctx domain.RequestContext, d doc.Document, a []attachment.Attachment)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer documents!
func NewIndexer ¶
NewIndexer provides background search indexer
func (*Indexer) DeleteContent ¶ added in v1.52.0
func (m *Indexer) DeleteContent(ctx domain.RequestContext, pageID string)
DeleteContent removes all search entries for specific document content.
func (*Indexer) DeleteDocument ¶
func (m *Indexer) DeleteDocument(ctx domain.RequestContext, ID string)
DeleteDocument removes all search entries for document.
func (*Indexer) IndexContent ¶ added in v1.52.0
func (m *Indexer) IndexContent(ctx domain.RequestContext, p page.Page)
IndexContent adds search index entry for document context. Any existing document entries are removed.
func (*Indexer) IndexDocument ¶ added in v1.52.0
func (m *Indexer) IndexDocument(ctx domain.RequestContext, d doc.Document, a []attachment.Attachment)
IndexDocument adds search indesd entries for document inserting title, tags and attachments as searchable items. Any existing document entries are removed.
Click to show internal directories.
Click to hide internal directories.