Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregations ¶
type Client ¶
type Client interface { Info() (*ResultInfo, error) GetDSLAPI() *dsl.API Search(index string, srch any) (*SearchResult, error) }
type FakeElasticRoundTripper ¶
type FakeElasticRoundTripper struct {
// contains filtered or unexported fields
}
FakeElasticRoundTripper is used for Elasticsearch 7.x instances which do not send the required "X-Elastic-Product" header. This Problem seems to be solved on Elasticsearch 8.x
func NewFakeElasticRoundTripper ¶
func NewFakeElasticRoundTripper(originalTransport http.RoundTripper) FakeElasticRoundTripper
type JSONDummy ¶
type JSONDummy []byte
JSONDummy reflects json value as []byte
func (*JSONDummy) UnmarshalJSON ¶
type ResultInfo ¶
type ResultInfo struct { Name string `json:"name,omitempty"` ClusterName string `json:"cluster_name,omitempty"` ClusterUUID string `json:"cluster_uuid,omitempty"` Version struct { Number string `json:"number,omitempty"` BuildFlavor string `json:"build_flavor,omitempty"` BuildType string `json:"build_type,omitempty"` BuildHash string `json:"build_hash,omitempty"` BuildDate time.Time `json:"build_date,omitempty"` BuildSnapshot bool `json:"build_snapshot,omitempty"` LuceneVersion string `json:"lucene_version,omitempty"` MinimumWireCompatibilityVersion string `json:"minimum_wire_compatibility_version,omitempty"` MinimumIndexCompatibilityVersion string `json:"minimum_index_compatibility_version,omitempty"` } `json:"version,omitempty"` Tagline string `json:"tagline,omitempty"` }
type ResultRelation ¶
type ResultRelation string
const ( ResultRelationEQ ResultRelation = "eq" ResultRelationGTE ResultRelation = "gte" )
type SearchConfig ¶
type SearchResult ¶
type SearchResult struct { ScrollID string `json:"_scroll_id,omitempty"` Took int `json:"took,omitempty"` TimedOut bool `json:"timed_out,omitempty"` Shards *Shard `json:"_shards,omitempty"` Hits *Hits `json:"hits,omitempty"` Aggregations Aggregations `json:"aggregations,omitempty"` Error *Error `json:"error,omitempty"` Status int `json:"status,omitempty"` }
type Total ¶
type Total struct { Value int `json:"value,omitempty"` Relation ResultRelation `json:"relation,omitempty"` }
Click to show internal directories.
Click to hide internal directories.