elasticsearch

package
v0.0.0-...-ba1ec4a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(indexName string, typeName string, doc interface{}) (bool, error)

func BatchAdd

func BatchAdd(indexName string, typeName string, docList []interface{}) (int64, error)

func DeleteAll

func DeleteAll(indexName string, typeName string) (int64, error)

func DeleteIndex

func DeleteIndex(indexName string) (bool, error)

func Ping

func Ping() (interface{}, int, error)

func RawSearch

func RawSearch(indexName string, typeName string, queryString string, pageSize int, pageNo int) (*elastic.SearchResult, error)
func Search(indexName string, typeName string, query elastic.Query, pageSize int, pageNo int) ([]*json.RawMessage, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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