elasticsearch7

package module
v0.0.0-...-c9cb12b Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EsClient *elastic.Client
)

Functions

func CreateIndex

func CreateIndex(IndexName string) (bool, error)

创建索引

func DelDoc

func DelDoc(IndexName string) (*elastic.BulkIndexByScrollResponse, error)

删除索引单个文档

func ExistsIndex

func ExistsIndex(IndexName string) (bool, error)

判断索引是否存在

func SelDoc

func SelDoc(IndexName string) (*elastic.GetResult, error)

// // 根据条件查询文档信息

func UpdateDoc

func UpdateDoc(IndexName string) (*elastic.BulkIndexByScrollResponse, error)

修改信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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