es8

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct {
	Enabled bool `json:"enabled,omitempty"`
}

type CreateIndexBody

type CreateIndexBody struct {
	Settings *Settings `json:"settings,omitempty"`
	Mappings *Mappings `json:"mappings,omitempty"`
}

type Index

type Index struct {
	NumberOfShards   uint32 `json:"number_of_shards,omitempty"`
	NumberOfReplicas uint32 `json:"number_of_replicas,omitempty"`
}

type Mappings

type Mappings struct {
	// All        All                 `json:"_all,omitempty"`
	Properties map[string]Property `json:"properties,omitempty"`
}

type Property

type Property struct {
	Type        string              `json:"type,omitempty"`
	Index       *bool               `json:"index"`
	Format      string              `json:"format,omitempty"`
	Path        string              `json:"path,omitempty"`
	IgnoreAbove uint                `json:"ignore_above,omitempty"`
	Properties  map[string]Property `json:"properties,omitempty"`
	Fields      map[string]Property `json:"fields,omitempty"` // key can be "raw" or "keyword". See more https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html#multi-fields .
}

type Settings

type Settings struct {
	Index            *Index `json:"index,omitempty"`
	NumberOfShards   uint32 `json:"number_of_shards,omitempty"`
	NumberOfReplicas uint32 `json:"number_of_replicas,omitempty"`
}

func SettingsTest

func SettingsTest() *Settings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL