es

package
v0.0.0-...-7c000f5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBaseIndexProperties

func NewBaseIndexProperties() *baseIndexProperties

func NewEsClient

func NewEsClient(host string, port int, sniffer bool) *esClient

构造EsClient

Types

type Mapping

type Mapping struct {
	Mappings Mappings `json:"mappings"`
}

func NewMapping

func NewMapping(pt Properties) *Mapping

func (*Mapping) MappingToJsonString

func (m *Mapping) MappingToJsonString() ([]byte, error)

type Mappings

type Mappings struct {
	Properties Properties `json:"properties"`
}

type Properties

type Properties interface {
	SetProperties(title string, pt *PropertiesType)
}

type PropertiesType

type PropertiesType struct {
	Type string `json:"type"`
}

type QueryData

type QueryData interface {
	SetScore(float64)
	SetEsId(string)
}

Jump to

Keyboard shortcuts

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