elasticsearch

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 16 Imported by: 0

Documentation

Overview

Package elasticsearch provides an interface-compatible wrapper around the elasticsearch indexer

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyQueryProvided indicates an empty query was provided as input.
	ErrEmptyQueryProvided = errors.New("empty search query provided")
)

Functions

func ProvideIndexManager

func ProvideIndexManager[T search.Searchable](ctx context.Context, logger logging.Logger, tracerProvider tracing.TracerProvider, cfg *Config, indexName string) (search.Index[T], error)

Types

type Config

type Config struct {
	Address               string        `json:"address"               toml:"address,omitempty"`
	Username              string        `json:"username"              toml:"username,omitempty"`
	Password              string        `json:"password"              toml:"password,omitempty"`
	CACert                []byte        `json:"caCert"                toml:"ca_cert,omitempty"`
	IndexOperationTimeout time.Duration `json:"indexOperationTimeout" toml:"index_operation_timeout,omitempty"`
}

Jump to

Keyboard shortcuts

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