Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchIndexer ¶
type BatchIndexer struct {
// contains filtered or unexported fields
}
BatchIndexer wraps around a Bleve indexer for batch writing.
func (BatchIndexer) IndexRoomMember ¶
func (b BatchIndexer) IndexRoomMember(m *event.RoomMemberEvent)
IndexRoomMember indexes the given room member from the event.
type IndexedRoomMember ¶
type IndexedRoomMember struct { ID matrix.UserID `json:"id"` Room matrix.RoomID `json:"room_id"` Name string `json:"name"` }
IndexedRoomMember is the data structure representing indexed room member information.
func (*IndexedRoomMember) Index ¶
func (m *IndexedRoomMember) Index(b *bleve.Batch) error
Index indexes m into the given Bleve indexer.
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer provides indexing of many types of Matrix data for querying.
func (*Indexer) SearchRoomMember ¶
func (idx *Indexer) SearchRoomMember(roomID matrix.RoomID, limit int) RoomMemberSearcher
SearchRoomMember returns a new instance of RoomMemberSearcher that the client can use to search room members.
type RoomMemberSearcher ¶
type RoomMemberSearcher struct {
// contains filtered or unexported fields
}
func (*RoomMemberSearcher) Search ¶
func (s *RoomMemberSearcher) Search(ctx context.Context, str string) []IndexedRoomMember
Search looks up the indexing database and searches for the given string. The returned list of IDs is valid until the next time Search is called.
Click to show internal directories.
Click to hide internal directories.