Documentation
¶
Index ¶
- type Service
- func (service *Service) Bulk(index string, docs []api.Doc, failedInfoOnly bool) (*entity.DocumentBulkResult, error)
- func (service *Service) CatIndices(indices string) ([]*entity.IndexInfo, error)
- func (service *Service) CreateIndex(index string, body *[]byte) (*entity.OperateResult, error)
- func (service *Service) DeleteIndex(index ...string) (*entity.OperateResult, error)
- func (service *Service) GetIndexAlias(index, alias []string) (*entity.IndexAlias, error)
- func (service *Service) GetIndexMapping(index string) (*entity.IndexMapping, error)
- func (service *Service) GetIndexNames(names ...string) ([]string, error)
- func (service *Service) GetIndexSetting(index string, settings ...string) (*entity.IndexSetting, error)
- func (service *Service) IndexExists(index string) (bool, error)
- func (service *Service) Ping() bool
- func (service *Service) Search(indexName string, body *[]byte) (*entity.EsQueryResult, error)
- func (service *Service) UpdateIndexAlias(actions ...*api.AliasAction) (*entity.OperateResult, error)
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 (*Service) CatIndices ¶
func (*Service) CreateIndex ¶
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) GetIndexSetting ¶
func (*Service) UpdateIndexAlias ¶
func (service *Service) UpdateIndexAlias(actions ...*api.AliasAction) (*entity.OperateResult, error)
Click to show internal directories.
Click to hide internal directories.