Documentation ¶
Index ¶
- type Index
- func (i *Index) Close() error
- func (i *Index) Delete(roomID string) error
- func (i *Index) Index(roomID string, data *model.Entry) error
- func (i *Index) IndexBatch(batch *bleve.Batch) error
- func (i *Index) Len() int
- func (i *Index) NewBatch() *bleve.Batch
- func (i *Index) Search(ctx context.Context, searchQuery query.Query, limit, offset int, ...) (results []*model.Entry, total int, err error)
- func (i *Index) Swap(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func NewIndex ¶
NewIndex creates or opens an index
func (*Index) IndexBatch ¶
IndexBatch of entries
Click to show internal directories.
Click to hide internal directories.