Documentation ¶
Index ¶
- type IndexElement
- type Search
- func (f *Search) BatchIndex(elements []IndexElement) error
- func (f *Search) Close() error
- func (f *Search) Delete(eventID string) error
- 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 Search ¶
type Search struct{}
func (*Search) BatchIndex ¶
func (f *Search) BatchIndex(elements []IndexElement) error
func (*Search) Index ¶
func (f *Search) Index(e IndexElement) error
Click to show internal directories.
Click to hide internal directories.