service

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Constructor *constructor.Constructor
	// contains filtered or unexported fields
}

func NewDefaultService

func NewDefaultService() (service *Service, err error)

func NewService

func NewService(config *client.Config) (*Service, error)

func (*Service) Bulk

func (service *Service) Bulk(index string, docs []api.Doc, failedInfoOnly bool) (*entity.DocumentBulkResult, error)

func (*Service) CatIndices

func (service *Service) CatIndices(indices string) ([]*entity.IndexInfo, error)

func (*Service) CreateIndex

func (service *Service) CreateIndex(index string, body *[]byte) (*entity.OperateResult, error)

func (*Service) DeleteIndex

func (service *Service) DeleteIndex(index ...string) (*entity.OperateResult, error)

func (*Service) GetIndexAlias

func (service *Service) GetIndexAlias(index, alias []string) (*entity.IndexAlias, error)

func (*Service) GetIndexMapping

func (service *Service) GetIndexMapping(index string) (*entity.IndexMapping, error)

func (*Service) GetIndexNames

func (service *Service) GetIndexNames(names ...string) ([]string, error)

func (*Service) GetIndexSetting

func (service *Service) GetIndexSetting(index string, settings ...string) (*entity.IndexSetting, error)

func (*Service) IndexExists

func (service *Service) IndexExists(index string) (bool, error)

func (*Service) Ping

func (service *Service) Ping() bool

func (*Service) Search

func (service *Service) Search(indexName string, body *[]byte) (*entity.EsQueryResult, error)

func (*Service) UpdateIndexAlias

func (service *Service) UpdateIndexAlias(actions ...*api.AliasAction) (*entity.OperateResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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