es8

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://localhost:9200"
	TypeInteger    = "integer"
	TypeKeyword    = "keyword"
	TypeText       = "text"
)

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 int                 `json:"ignore_above,omitempty"`
	Properties  map[string]Property `json:"properties,omitempty"`
	Fields      map[string]Property `json:"fields,omitempty"` // key can be "raw"
}

type Settings

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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