elasticsearch

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSearchIndexSettings

func GetSearchIndexSettings() []byte

Types

type Client

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

Client represents an instance of the elasticsearch client - now deprecated

func New

func New(url string, client dphttp.Clienter, awsService, awsRegion string) *Client

New creates a new elasticsearch client. Any trailing slashes from the URL are removed.

func (*Client) MultiSearch

func (cli *Client) MultiSearch(ctx context.Context, index, docType string, request []byte) ([]byte, error)

MultiSearch is a method that wraps the MultiSearch function of the elasticsearch package

func (*Client) Search

func (cli *Client) Search(ctx context.Context, index, docType string, request []byte) ([]byte, error)

Search is a method that wraps the Search function of the elasticsearch package

Jump to

Keyboard shortcuts

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