Documentation
¶
Index ¶
- func CreateHTTPClient(tlsConfig interface{}, httpClient *http.Client) *http.Client
- func CreateLogger(prefix string) *log.Logger
- func GetDefaultLogger() *log.Logger
- func NewConfig(url string, username string, password string, verifySSL bool, ...) elasticsearch.Config
- func TrimSpace(s string) string
- type BoolQuery
- type Client
- type MatchAllQuery
- type QueryBuilder
- type QueryStringQuery
- type RangeQuery
- type RawStringQuery
- type ScrollService
- type SearchHit
- type SearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHTTPClient ¶
func CreateLogger ¶
func GetDefaultLogger ¶
Types ¶
type BoolQuery ¶
type BoolQuery struct {
// contains filtered or unexported fields
}
func NewBoolQuery ¶
func NewBoolQuery() *BoolQuery
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type MatchAllQuery ¶
type MatchAllQuery struct {
// contains filtered or unexported fields
}
func NewMatchAllQuery ¶
func NewMatchAllQuery() *MatchAllQuery
func (*MatchAllQuery) Build ¶
func (q *MatchAllQuery) Build() map[string]interface{}
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
func NewQueryBuilder ¶
func NewQueryBuilder() *QueryBuilder
func (*QueryBuilder) Build ¶
func (q *QueryBuilder) Build() map[string]interface{}
type QueryStringQuery ¶
type QueryStringQuery struct {
// contains filtered or unexported fields
}
func NewQueryStringQuery ¶
func NewQueryStringQuery(query string) *QueryStringQuery
func (*QueryStringQuery) Build ¶
func (q *QueryStringQuery) Build() map[string]interface{}
type RangeQuery ¶
type RangeQuery struct {
// contains filtered or unexported fields
}
func NewRangeQuery ¶
func NewRangeQuery(field string) *RangeQuery
func (*RangeQuery) Build ¶
func (q *RangeQuery) Build() map[string]interface{}
func (*RangeQuery) Gte ¶
func (q *RangeQuery) Gte(value string) *RangeQuery
func (*RangeQuery) Lte ¶
func (q *RangeQuery) Lte(value string) *RangeQuery
type RawStringQuery ¶
type RawStringQuery struct {
// contains filtered or unexported fields
}
func NewRawStringQuery ¶
func NewRawStringQuery(rawQuery string) *RawStringQuery
func (*RawStringQuery) Build ¶
func (q *RawStringQuery) Build() map[string]interface{}
type ScrollService ¶
type ScrollService struct {
// contains filtered or unexported fields
}
func (*ScrollService) Do ¶
func (s *ScrollService) Do(ctx context.Context) (*SearchResult, error)
func (*ScrollService) FetchSourceContext ¶
func (s *ScrollService) FetchSourceContext(includeFields []string) *ScrollService
type SearchResult ¶
type SearchResult struct {
// contains filtered or unexported fields
}
func (*SearchResult) Hits ¶
func (r *SearchResult) Hits() []SearchHit
func (*SearchResult) Total ¶
func (r *SearchResult) Total() int64
Click to show internal directories.
Click to hide internal directories.