Documentation ¶
Index ¶
- type Indexer
- func (b *Indexer) Delete(ctx context.Context, repoID int64) error
- func (b *Indexer) Index(ctx context.Context, repo *repo_model.Repository, sha string, ...) error
- func (b *Indexer) Search(ctx context.Context, repoIDs []int64, language, keyword string, ...) (int64, []*internal.SearchResult, []*internal.SearchResultLanguages, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct { indexer_internal.Indexer // do not composite inner_elasticsearch.Indexer directly to avoid exposing too much // contains filtered or unexported fields }
Indexer implements Indexer interface
func NewIndexer ¶
NewIndexer creates a new elasticsearch indexer
func (*Indexer) Index ¶
func (b *Indexer) Index(ctx context.Context, repo *repo_model.Repository, sha string, changes *internal.RepoChanges) error
Index will save the index data
Click to show internal directories.
Click to hide internal directories.