es

package
v1.25.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 14 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearch

type ElasticSearch struct {
	Elastic *elastic.Client
	// contains filtered or unexported fields
}

func (*ElasticSearch) AddDocument

func (e *ElasticSearch) AddDocument(database, table string, doc map[string]any, searchFields []string) (string, error)

func (*ElasticSearch) AddDocuments

func (e *ElasticSearch) AddDocuments(database, table string, docs []map[string]any, searchFields []string) ([]string, error)

func (*ElasticSearch) Check

func (e *ElasticSearch) Check() error

func (*ElasticSearch) Close

func (e *ElasticSearch) Close()

func (*ElasticSearch) DeleteDatabase

func (e *ElasticSearch) DeleteDatabase(database string) (bool, error)

func (*ElasticSearch) DeleteDocument

func (e *ElasticSearch) DeleteDocument(database, table string, id string) (bool, error)

func (*ElasticSearch) DeleteDocuments

func (e *ElasticSearch) DeleteDocuments(database, table string, ids []string) (bool, error)

func (*ElasticSearch) DeleteTable

func (e *ElasticSearch) DeleteTable(database, table string) (bool, error)

func (*ElasticSearch) Init

func (e *ElasticSearch) Init(elasticConfigData []byte)

func (*ElasticSearch) UpdateDocument

func (e *ElasticSearch) UpdateDocument(database, table, id string, updateData map[string]any) (bool, error)

Jump to

Keyboard shortcuts

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