go-mysql-org / go-mysql-elasticsearch

Sync MySQL data into elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

同步es8需要删除client.go 文件的type字段检测

chenshiforever opened this issue · comments

删除这里elastic/client.go文件中的判断语句

if len(r.Type) > 0 {
	metaData["_type"] = r.Type
}

方案来源于https://blog.csdn.net/itopit/article/details/124438315

已经验证可以使用,删除这段代码以后再make,es8.9测试成功