Documentation ¶
Index ¶
- type IndexElement
- type Indexer
- type Search
- func (f *Search) BatchIndex(elements []IndexElement) error
- func (f *Search) Close() error
- func (f *Search) Delete(eventID string) error
- func (f *Search) GetHighlights(result SearchResult) []string
- func (f *Search) Index(e ...IndexElement) error
- func (f *Search) Search(term string, roomIDs, keys []string, limit, from int, orderByStreamPos bool) (SearchResult, error)
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexElement ¶
type IndexElement struct { EventID string RoomID string Content string ContentType string StreamPosition int64 }
func (*IndexElement) SetContentType ¶
func (i *IndexElement) SetContentType(v string)
type Indexer ¶
type Indexer interface { Index(elements ...IndexElement) error Delete(eventID string) error Search(term string, roomIDs, keys []string, limit, from int, orderByStreamPos bool) (SearchResult, error) GetHighlights(result SearchResult) []string Close() error }
type Search ¶
type Search struct{}
func (*Search) BatchIndex ¶
func (f *Search) BatchIndex(elements []IndexElement) error
func (*Search) GetHighlights ¶
func (f *Search) GetHighlights(result SearchResult) []string
func (*Search) Index ¶
func (f *Search) Index(e ...IndexElement) error
Click to show internal directories.
Click to hide internal directories.