elasticsearch

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongResponse         = errors.New("wrong response")
	ErrWrongCountOfArguments = errors.New("error count of arguments")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	*elasticsearch.Client
}

func NewClient

func NewClient() (*Client, error)

func (*Client) GetMatchQuery

func (c *Client) GetMatchQuery(keyValues ...string) (map[string]interface{}, error)

func (*Client) SearchByIndex

func (c *Client) SearchByIndex(
	ctx context.Context,
	indexes []string,
	query map[string]interface{},
) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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