esiface

package
v1.0.1-rel-01 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdRequest

type CmdRequest interface {
	IesRequest
	SaveIndex(id string, model interface{}) (*elastic.IndexResponse, error)

	BulkUpdate() (*elastic.BulkResponse, error)
	BulkDocAsUpsert() (*elastic.BulkResponse, error)

	DocAsUpsert() (*elastic.UpdateResponse, error)
	Upsert() (*elastic.UpdateResponse, error)
	Update() (*elastic.UpdateResponse, error)
	UpdateByQuery() (*elastic.BulkIndexByScrollResponse, error)
	Delete() (*elastic.DeleteResponse, error)
	BulkDelete() (int, error)
	DeleteByQuery() (int64, error)
	SaveIndexData() (*elastic.IndexResponse, error)
	Execute() *basedto.IchubResult
}

type Execute

type Execute interface {
	//Exceute() *basedto.IchubResult
	Execute() (interface{}, error)
}

type IesRequest

type IesRequest interface {
	Client() *elastic.Client
}

type KeyWorkRequest

type KeyWorkRequest interface {
	IesRequest
	Analyze() (*elastic.IndicesAnalyzeResponse, error)
	IndexAnalyze(text string) (*elastic.IndicesAnalyzeResponse, error)
	IndexAnalyzeWord(r *splitword.SplitWordRequest) (*elastic.IndicesAnalyzeResponse, error)
	IndexAnalyzeToken(token string, text string) (*elastic.IndicesAnalyzeResponse, error)
	Execute() (interface{}, error)
}

type MetadataRequest

type MetadataRequest interface {
	IesRequest
	GetMapping() (map[string]interface{}, error)
	DropIndex() (*elastic.IndicesDeleteResponse, error)
	IndexExist() (bool, error)
	ToMetadata() *indexmeta.EsIndexMeta
	CreateAlias() (*basedto.IchubResult, error)
	CreateIndex() (bool, error)
	CreateIndexMapping(mapping string) (bool, error)
	Execute() (interface{}, error)
}

type QueryRequest

type QueryRequest interface {
	IesRequest
	Execute() (*pagees.PageEsResult, error)

	IfHighlight() bool
	Query() (*pagees.PageEsResult, error)
	Get() *basedto.IchubResult
	Get2PageEsResult() *pagees.PageEsResult
	Must() (*pagees.PageEsResult, error)
	MustNot() (*pagees.PageEsResult, error)
	Filter() (*pagees.PageEsResult, error)
	Should() (*pagees.PageEsResult, error)
	IfGet() bool
	IfQuery() bool
	IsMust() bool
	SetQueryEmpty(queryEmpty bool) *pagereq.QueryRequest
	SetQueryZero(queryEmpty bool) *pagereq.QueryRequest
	EsStats(statField string, size ...int) *pagereq.QueryRequest
}

Jump to

Keyboard shortcuts

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