es

package
v1.19.47 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 16 Imported by: 0

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(elasticConfigUrl string)

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