Documentation
¶
Index ¶
Constants ¶
View Source
const ( ElasticV5 = "5" ElasticV6 = "6" ElasticV7 = "7" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregations ¶
type Aggregations struct {
CardinalityAggregation `json:"cardinality_aggregation,omitempty"`
DateHistogramAggregation `json:"date_histogram_aggregation,omitempty"`
}
type CardinalityAggregation ¶
type CardinalityAggregation struct {
Value int64 `json:"value,omitempty"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Elasticsearch client
func (*Client) ClearScroll ¶
func (*Client) GetTotalHitCount ¶
type DateHistogramAggregation ¶
type DateHistogramAggregation struct {
Buckets []Bucket `json:"buckets,omitempty"`
}
type Hit ¶
type Hit struct {
Source interface{} `json:"_source,omitempty"`
Sort []int64 `json:"sort,omitempty"`
}
type Hits ¶
type Hits struct {
Total interface{} `json:"total,omitempty"` // `As of Elasticsearch v7.x, hits.total is changed incompatibly
AllHits []Hit `json:"hits,omitempty"`
}
type Response ¶
type Response struct {
ScrollId string `json:"_scroll_id,omitempty"`
Hits `json:"hits,omitempty"`
Aggregations `json:"aggregations,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.