Documentation
¶
Index ¶
- type Index
- func (idx *Index) Close() error
- func (idx *Index) Count() (uint64, error)
- func (idx *Index) Delete(slug string) error
- func (idx *Index) IndexPost(post *models.Post) error
- func (idx *Index) IndexPosts(posts []*models.Post) error
- func (idx *Index) Search(query string, limit int) ([]*SearchResult, error)
- type SearchResult
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
}
Index wraps a Bleve search index
func (*Index) IndexPosts ¶
IndexPosts indexes multiple posts
Click to show internal directories.
Click to hide internal directories.