Versions in this module Expand all Collapse all v1 v1.8.1 May 8, 2019 Changes in this version + func DeleteRepoIssueIndexer(repo *models.Repository) + func InitIssueIndexer(syncReindex bool) error + func SearchIssuesByKeyword(repoID int64, keyword string) ([]int64, error) + func UpdateIssueIndexer(issue *models.Issue) + type BleveIndexer struct + func NewBleveIndexer(indexDir string) *BleveIndexer + func (b *BleveIndexer) Delete(ids ...int64) error + func (b *BleveIndexer) Index(issues []*IndexerData) error + func (b *BleveIndexer) Init() (bool, error) + func (b *BleveIndexer) Search(keyword string, repoID int64, limit, start int) (*SearchResult, error) + type BleveIndexerData IndexerData + func (i *BleveIndexerData) Type() string + type ChannelQueue struct + func NewChannelQueue(indexer Indexer, batchNumber int) *ChannelQueue + func (c *ChannelQueue) Push(data *IndexerData) error + func (c *ChannelQueue) Run() error + type DBIndexer struct + func (db *DBIndexer) Delete(ids ...int64) error + func (db *DBIndexer) Index(issue []*IndexerData) error + func (db *DBIndexer) Init() (bool, error) + func (db *DBIndexer) Search(kw string, repoID int64, limit, start int) (*SearchResult, error) + type DummyQueue struct + func (b *DummyQueue) Push(*IndexerData) error + func (b *DummyQueue) Run() error + type Indexer interface + Delete func(ids ...int64) error + Index func(issue []*IndexerData) error + Init func() (bool, error) + Search func(kw string, repoID int64, limit, start int) (*SearchResult, error) + type IndexerData struct + Comments []string + Content string + ID int64 + IDs []int64 + IsDelete bool + RepoID int64 + Title string + type LevelQueue struct + func NewLevelQueue(indexer Indexer, dataDir string, batchNumber int) (*LevelQueue, error) + func (l *LevelQueue) Push(data *IndexerData) error + func (l *LevelQueue) Run() error + type Match struct + ID int64 + RepoID int64 + Score float64 + type Queue interface + Push func(*IndexerData) error + Run func() error + type SearchResult struct + Hits []Match + Total int64 v1.8.0-rc2 Mar 27, 2019