goelastic

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectGoElastic

func InjectGoElastic(s *GoElastic)

func LoadGoElastic

func LoadGoElastic() baseiface.ISingleton

Types

type GoElastic

type GoElastic struct {
	basedto.BaseEntitySingle

	Opened bool   `json:"opened"`
	Info   string `json:"init"`
	// contains filtered or unexported fields
}

func Default

func Default() *GoElastic

func FindBeanGoElastic

func FindBeanGoElastic() *GoElastic

FindBeanGoElastic

func NewGoElasticCli

func NewGoElasticCli() *GoElastic

func (*GoElastic) Client

func (self *GoElastic) Client() *elasticsearch.Client

func (*GoElastic) Init

func (self *GoElastic) Init()

func (*GoElastic) Query

func (self *GoElastic) Query(req *pagereq.QueryRequest) *pagees.PageEsResult

func (*GoElastic) Search

func (self *GoElastic) Search(o ...func(*esapi.SearchRequest)) (*esapi.Response, error)

func (*GoElastic) Search2Map

func (self *GoElastic) Search2Map(o ...func(*esapi.SearchRequest)) (map[string]any, error)

func (*GoElastic) Search2PageEsResult

func (self *GoElastic) Search2PageEsResult(o ...func(*esapi.SearchRequest)) *pagees.PageEsResult

func (*GoElastic) Search2SearchResult

func (self *GoElastic) Search2SearchResult(o ...func(*esapi.SearchRequest)) (*elastic.SearchResult, error)

func (*GoElastic) SetClient

func (self *GoElastic) SetClient(client *elasticsearch.Client)

Jump to

Keyboard shortcuts

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