Versions in this module Expand all Collapse all v1 v1.1.72 Jun 5, 2024 v1.1.71 Jun 4, 2024 v1.1.70 May 28, 2024 Changes in this version + var ErrMultiMatchSearchPrefix = errors.New("MultiMatchSearchPrefix response error") + func BulkIndex(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error) + func CreateAlias(ctx context.Context, esClient *elasticsearch.Client, indexes []string, ...) (*esapi.Response, error) + func CreateIndex(ctx context.Context, esClient *elasticsearch.Client, name string, data []byte) (*esapi.Response, error) + func Delete(ctx context.Context, transport esapi.Transport, index, documentID string) (*esapi.Response, error) + func Exists(ctx context.Context, esClient *elasticsearch.Client, indexes []string) (*esapi.Response, error) + func Index(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error) + func Info(ctx context.Context, esClient *elasticsearch.Client) (*esapi.Response, error) + func Int32Pointer(v int32) *int32 + func Int64Pointer(v int64) *int64 + func IntPointer(v int) *int + func MappingIndex(ctx context.Context, esClient *elasticsearch.Client, indexName string, ...) error + func NewElasticSearchClient(cfg *common_utils.BaseConfig) (*elasticsearch.Client, error) + func Search(ctx context.Context, esClient *elasticsearch.Client, index string, data any) (*esapi.Response, error) + func StringPointer(v string) *string + func Update(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error) + type Bool struct + Must []any + type Doc struct + Doc any + type ElasticIndex struct + Alias string + Name string + Path string + func (e *ElasticIndex) String() string + type EsHits struct + Hits struct{ ... } + type GetResponse struct + Found bool + Id string + Index string + PrimaryTerm int + SeqNo int + Source T + Version int + type MultiMatch struct + Fields []string + Query string + Type string + type MultiMatchQuery struct + MultiMatch MultiMatch + type MultiMatchSearchQuery struct + Query MultiMatchQuery + Sort []any + type SearchListResponse struct + List []T + Total int64 + func SearchMatchPhrasePrefix[T any](ctx context.Context, transport esapi.Transport, ...) (*SearchListResponse[T], error) + func SearchMultiMatchPrefix[T any](ctx context.Context, transport esapi.Transport, ...) (*SearchListResponse[T], error) + type SearchMatchPrefixRequest struct + Fields []string + From int + Index []string + Size int + Sort []string + SortMap map[string]any + Term string + type SearchOptions struct + Fields []string + From int + Size int + Sort []string