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

elasticsearch

package
v3.1.21 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 7 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 {
	Client *elastic.Client
	// contains filtered or unexported fields
}

Indexer represents a basic elasticsearch indexer implementation

func NewIndexer

func NewIndexer(url, indexName string, version int, mapping string) *Indexer

func (*Indexer) Close

func (i *Indexer) Close()

Close closes the indexer

func (*Indexer) Init

func (i *Indexer) Init(ctx context.Context) (bool, error)

Init initializes the indexer

func (*Indexer) Ping

func (i *Indexer) Ping(ctx context.Context) error

Ping checks if the indexer is available

func (*Indexer) VersionedIndexName

func (i *Indexer) VersionedIndexName() string

VersionedIndexName returns the full index name with version

Source Files

  • indexer.go
  • util.go

Jump to

Keyboard shortcuts

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