elasticsearch

package
v0.0.0-...-983cbdb Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	ElasticsearchIp   string
	ElasticsearchPort string
}

type EsClient

type EsClient struct {
	// contains filtered or unexported fields
}
var Client *EsClient

func (*EsClient) Build

func (es *EsClient) Build(index string)

func (*EsClient) Create

func (es *EsClient) Create(index, content string, id int)

func (*EsClient) Delete

func (es *EsClient) Delete(index, DocumentID string)

func (*EsClient) Search

func (es *EsClient) Search(index, keyWord, page string, keyBox []string) (int, []interface{})

func (*EsClient) SearchAll

func (es *EsClient) SearchAll(index string) (int, []interface{})

Jump to

Keyboard shortcuts

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