# README
esutils
convert struct with json tag to elasticsearch mapping.
its a very simple code.u can edit it by yourself,if u want to add new type. just support elasticsearch v7 and v8.
go type | es type |
---|---|
uint8,uint16,uint32,int8,int16,int32,int | integer |
uint64,int64 | long |
float32 | float |
float64 | double |
time.Time,*time.Time | date |
string | keyword(default ignore_above 256) |
将带有json tag的go 结构体转换成 elasticsearch的mapping.
use import "github.com/suiguo/esutils"
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
es host.
ignore_above.
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author