Help us shape the future of Go! Take the 2026 Go Developer Survey

elasticsearch

package
v3.1.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2026 License: MIT, MIT Imports: 24 Imported by: 0

Documentation

Index

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

func NewIndexer(url, indexerName string) *Indexer

NewIndexer creates a new elasticsearch indexer

func (*Indexer) Delete

func (b *Indexer) Delete(ctx context.Context, repoID int64) error

Delete entries by repoId

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

func (*Indexer) Search

Search searches for codes and language stats by given conditions.

func (*Indexer) SupportedSearchModes

func (b *Indexer) SupportedSearchModes() []indexer.SearchMode

Source Files

  • elasticsearch.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL