elastic_search

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewElasticSearchClient

func NewElasticSearchClient(addresses []string) (*Client, error)

func (*Client) Close

func (cli *Client) Close()

func (*Client) GetById

func (client *Client) GetById(index, typ, id string, timeout time.Duration) (*elastic.GetResult, error)

func (*Client) Scan

func (client *Client) Scan(index, term, value, sortBy string, limitFrom, limitTo int, timeout time.Duration) (*elastic.SearchResult, error)

func (*Client) Set

func (client *Client) Set(index, typ, id string, items interface{}, timeout time.Duration) (*elastic.IndexResponse, error)

Jump to

Keyboard shortcuts

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