Versions in this module Expand all Collapse all v0 v0.4.1 Mar 7, 2022 v0.3.1 Feb 11, 2022 Changes in this version + const EntityIndex + type ESClient struct + Client *elastic.Client + func (es *ESClient) BuildIndex(ctx context.Context, id, body string) error + func (es *ESClient) Delete(ctx context.Context, id string) error + func (es *ESClient) DeleteByQuery(ctx context.Context, query map[string]interface{}) error + func (es *ESClient) Search(ctx context.Context, req SearchRequest) (SearchResponse, error) + type SearchEngine interface + BuildIndex func(ctx context.Context, index, content string) error + Delete func(ctx context.Context, id string) error + Search func(ctx context.Context, request SearchRequest) (SearchResponse, error) + func NewElasticsearchEngine(config config.ESConfig) SearchEngine + type SearchRequest struct + Condition []*pb.SearchCondition + Owner string + Page *pb.Pager + Query string + Source string + type SearchResponse struct + Data []map[string]interface{} + Limit int64 + Offset int64 + Raw []byte + Total int64 + type SelectDriveOption func() Type + func Parse(drive string) SelectDriveOption + type Type string + const ElasticsearchDriver + func Elasticsearch() Type + func NoopDriver() Type