elasticsearch

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elastic added in v1.1.25

type Elastic struct {
	// contains filtered or unexported fields
}

func NewV1 added in v1.1.25

func NewV1(name string) *Elastic

func (*Elastic) Delete added in v1.1.25

func (s *Elastic) Delete(ctx context.Context, key string) (res *delete.Response, err error)

Delete 删除 document

func (*Elastic) Get added in v1.1.25

func (s *Elastic) Get(ctx context.Context, id string) (res json.RawMessage, err error)

Get 获取文档

func (*Elastic) Select added in v1.1.25

func (s *Elastic) Select(ctx context.Context, query *types.MatchAllQuery) (res *search.Response, err error)

Select 查询

func (*Elastic) Set added in v1.1.25

func (s *Elastic) Set(ctx context.Context, key string, data interface{}) (err error)

Set 添加文档索引文档

func (*Elastic) SetBulk added in v1.1.25

func (s *Elastic) SetBulk(ctx context.Context, data []any) (err error)

SetBulk 批量添加文档

func (*Elastic) Update added in v1.1.25

func (s *Elastic) Update(ctx context.Context, key string, data interface{}) (res *update.Response, err error)

Update 更新文档

Jump to

Keyboard shortcuts

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