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 }
Click to show internal directories.
Click to hide internal directories.