elasticsearch

package
v0.0.0-...-f92b7e8 Latest Latest
Warning

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

Go to latest
Published: May 9, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	*elastic.Client
	URL string
}

Connection is a

func Connect

func Connect(url string) (*Connection, error)

Connect returns a Connection to an Elasticsearch endpoint

func (*Connection) Ping

func (con *Connection) Ping() bool

Ping queries the ES cluster as a simple health check

func (*Connection) TermQuery

func (con *Connection) TermQuery(option TermQueryOptions) interface{}

type TermQueryOptions

type TermQueryOptions struct {
	Index     string
	Sort      string
	Ascending bool
	Query     string
}

Jump to

Keyboard shortcuts

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