Documentation ¶
Index ¶
Constants ¶
View Source
const ( //ES查询单页数量,超过限制的需要滚动 RESULT_WINDOW_SIZE = 5000 //ES分页查询结果集生存时间,每次滚动会刷新一下 SCROLL_TIME = time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elastic ¶
type Elastic struct {
// contains filtered or unexported fields
}
var (
ESClient *Elastic
)
func InitESClient ¶
@title 初始化ES连接客户端 @description 连接ES的全局客户端变量 @auth 王敩 2020-07-25
Click to show internal directories.
Click to hide internal directories.