Documentation ¶
Index ¶
- Variables
- func BulkIndex(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error)
- func Delete(ctx context.Context, transport esapi.Transport, index, documentID string) (*esapi.Response, error)
- func Index(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error)
- func Info(ctx context.Context, transport esapi.Transport) (*esapi.Response, error)
- func Int32Pointer(v int32) *int32
- func Int64Pointer(v int64) *int64
- func IntPointer(v int) *int
- func NewElasticSearchClient(cfg *common_utils.BaseConfig) (*elasticsearch.Client, error)
- func StringPointer(v string) *string
- func Update(ctx context.Context, transport esapi.Transport, index, documentID string, ...) (*esapi.Response, error)
- type Doc
- type EsHits
- type GetResponse
- type MultiMatch
- type MultiMatchQuery
- type MultiMatchSearchQuery
- type SearchListResponse
- type SearchMatchPrefixRequest
- type SearchOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMultiMatchSearchPrefix = errors.New("MultiMatchSearchPrefix response error")
)
Functions ¶
func Int32Pointer ¶
func Int64Pointer ¶
func IntPointer ¶
func NewElasticSearchClient ¶
func NewElasticSearchClient(cfg *common_utils.BaseConfig) (*elasticsearch.Client, error)
func StringPointer ¶
Types ¶
type Doc ¶
type Doc struct {
Doc any `json:"doc"`
}
Doc is update request wrapper for any json serializable data
type GetResponse ¶
type MultiMatch ¶
type MultiMatchQuery ¶
type MultiMatchQuery struct {
MultiMatch MultiMatch `json:"multi_match"`
}
type MultiMatchSearchQuery ¶
type MultiMatchSearchQuery struct { Query MultiMatchQuery `json:"query"` Sort []any `json:"sort"` }
type SearchListResponse ¶
func SearchMatchPhrasePrefix ¶
func SearchMatchPhrasePrefix[T any](ctx context.Context, transport esapi.Transport, request SearchMatchPrefixRequest) (*SearchListResponse[T], error)
func SearchMultiMatchPrefix ¶
func SearchMultiMatchPrefix[T any](ctx context.Context, transport esapi.Transport, request SearchMatchPrefixRequest) (*SearchListResponse[T], error)
Click to show internal directories.
Click to hide internal directories.