elasticsearch

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 11 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")
)
View Source
var (
	// Providers represents what this library offers to external users in the form of dependencies.
	Providers = wire.NewSet(
		ProvideIndexManagerProvider,
	)
)

Functions

func NewIndexManager

func NewIndexManager(
	ctx context.Context,
	logger logging.Logger,
	client *http.Client,
	path search.IndexPath,
	name search.IndexName,
	fields ...string,
) (search.IndexManager, error)

NewIndexManager instantiates an Elasticsearch client.

func ProvideIndexManagerProvider

func ProvideIndexManagerProvider() search.IndexManagerProvider

ProvideIndexManagerProvider is a wrapper around NewIndexManager.

Types

This section is empty.

Jump to

Keyboard shortcuts

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