Documentation
¶
Overview ¶
Package elastic holds the ElasticSearch specific meta declarations and util functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataStream ¶
func PutDataStream ¶
Types ¶
type ESInfo ¶
type ESInfo struct {
Name string `json:"name"`
ClusterName string `json:"cluster_name"`
ClusterUUID string `json:"cluster_uuid"`
Version ESInfoVersion `json:"version"`
Tagline string `json:"tagline"`
}
type ESInfoVersion ¶
type ESInfoVersion struct {
Number string `json:"number"`
BuildFlavor string `json:"build_flavor"`
BuildHash string `json:"build_hash"`
BuildDate string `json:"build_date"`
BuildSnapshot bool `json:"build_snapshot"`
LuceneVersion string `json:"lucene_version"`
MinimumWireVersion string `json:"minimum_wire_version"`
MinimumIndexCompatibility string `json:"minimum_index_compatibility"`
}
type ESXPack ¶
type ESXPack struct {
Build map[string]bool `json:"build"`
Features map[string]bool `json:"features"`
License ESLicense `json:"license"`
}
func NewESXPack ¶
type Mappings ¶
type Mappings struct {
// Properties holds the index properties.
Properties map[string]Property `json:"properties,omitempty"`
// contains filtered or unexported fields
}
Mappings holds the index mappings.
func (*Mappings) GetProperty ¶
GetProperty returns the property by its field name. This function is concurrent safe.
func (*Mappings) Len ¶
Len returns the number of properties stored. This function is concurrent safe.
func (*Mappings) ListProperty ¶
ListProperty returns all properties of the mapping. This function is concurrent safe.
func (*Mappings) MarshalJSON ¶
MarshalJSON overwrites the default marshaler. This function is concurrent safe.
func (*Mappings) SetProperty ¶
SetProperty sets/ adds the given property to the mapping. This function is concurrent safe.
type Property ¶
type Property struct {
// Type holds the field type.
// The type field may be empty, i.e., if the field represents an object.
Type string `json:"type,omitempty"`
// Properties holds the sub-properties of this property.
Properties map[string]Property `json:"properties,omitempty"`
// Fields the same string value to be indexed in multiple ways for different purposes,
// such as one field for search and a multi-field for sorting and aggregations,
// or the same string value analyzed by different analyzers.
Fields map[string]Property `json:"fields,omitempty"`
// IgnoreAbove prevents indexing of strings longer than the configured value.
// TODO: Should this be supported by Zinc?
IgnoreAbove uint `json:"ignore_above,omitempty"`
Analyzer string `json:"analyzer,omitempty"`
SearchAnalyzer string `json:"search_analyzer,omitempty"`
// Format holds the property format.
Format string `json:"format,omitempty"`
}
Property holds the property of a single field.
Click to show internal directories.
Click to hide internal directories.