elasticsearch

package
v0.0.0-...-d5aab6d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 6 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

Jump to

Keyboard shortcuts

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