elastic

package
v0.0.0-...-ef3eba0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound error
	ErrNotFound = errors.New("not found")
	// Hosts elasticsearch
	Hosts []string
)

Functions

func Count

func Count(cr *proto.CountRequest) (int, error)

Count record

func Create

func Create(cr *proto.CreateRequest) error

Create record

func CreateIndexWithSettings

func CreateIndexWithSettings(r *proto.CreateIndexWithSettingsRequest) error

CreateIndexWithSettings creates an ES index with settings

func Delete

func Delete(dr *proto.DeleteRequest) error

Delete record

func Init

func Init()

Init ES connection

func PutMappingFromJSON

func PutMappingFromJSON(r *proto.PutMappingFromJSONRequest) error

PutMappingFromJSON puts a mapping into ES

func Query

func Query(sr *proto.QueryRequest) (string, error)

Query DSL ES

func Read

func Read(rr *proto.ReadRequest) (string, error)

Read record

func Search(sr *proto.SearchRequest) (string, error)

Search ES index

func Update

func Update(ur *proto.UpdateRequest) error

Update record

Types

This section is empty.

Jump to

Keyboard shortcuts

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