elasticsearch

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ES6 = "es6"
	ES7 = "es7"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateModel

type AggregateModel struct {
	IndexName string
	TypeName  string
	Source    string
	AggKeys   []string
}

type MappingProperty added in v1.0.17

type MappingProperty struct {
	Type     string                      `json:"type"`               //
	Index    bool                        `json:"index,omitempty"`    //
	Analyzer string                      `json:"analyzer,omitempty"` //
	Fields   map[string]*MappingProperty `json:"fields,omitempty"`   //
	ExtProps map[string]interface{}      `json:"-"`
}

func (*MappingProperty) MarshalJSON added in v1.0.17

func (t *MappingProperty) MarshalJSON() ([]byte, error)

type MappingSettings added in v1.0.17

type MappingSettings struct {
	SettingsIndex `json:"index"`
}

type QueryModel

type QueryModel struct {
	IndexName string
	TypeName  string
	Query     interface{} //elastic.Query
	Sort      []string
	Cursor    int
	Size      int
	Results   interface{}
	Total     *int64
}

type SettingsIndex added in v1.0.17

type SettingsIndex struct {
	IgnoreMalformed  bool `json:"mapping.ignore_malformed,omitempty"` // true
	NumberOfReplicas int  `json:"number_of_replicas"`                 // 1
	NumberOfShards   int  `json:"number_of_shards"`                   // 3
}

type SourceModel

type SourceModel struct {
	IndexName string
	TypeName  string
	Source    string
	Results   interface{}
	Total     *int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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