Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEsV7 ¶
func NewEsV7(c Config) *elasticsearchV7.Client
func NewEsV8 ¶
func NewEsV8(c Config) *elasticsearchV8.Client
Types ¶
type SearchResponse ¶
type SearchResponse struct {
Took uint64 `json:"took"`
TimedOut bool `json:"timed_out"`
Shards struct {
Total uint64 `json:"total"`
Successful uint64 `json:"successful"`
Skipped uint64 `json:"skipped"`
Failed uint64 `json:"failed"`
} `json:"_shards"`
Hits *SearchResponseHits `json:"hits"`
Aggregations map[string]json.RawMessage `json:"aggregations"`
}
type SearchResponseHits ¶
type SearchResponseHits struct {
Total struct {
Value uint64 `json:"value"`
Relation string `json:"relation"`
} `json:"total"`
MaxScore float64 `json:"max_score"`
Hits []*SearchResponseHitsHits `json:"hits"`
}
type SearchResponseHitsHits ¶
Click to show internal directories.
Click to hide internal directories.