三人行必有我师

ES写入数据失败,查不到

Elasticsearch | 作者 Sandon | 发布于2017年10月15日 | 阅读数:8287

IIndexResponse index = _client.Index(model, s => s.Index("d_index").Type("ddddd").Id(model.iid).Refresh(Refresh.True).Ttl("1m"));
ElastaticSearchResult searchResult = new ElastaticSearchResult
{
GlobalID = Convert.ToInt64(model.iid),
AddTime = DateTime.Now,
ElastaticSearchResult1 = index.Created ? 1 : 0,
ActionDel = false,
Exp = ""
};

index.Created为0的数据就是写入失败的,请问失败的原因有哪些,如果失败了,可以从什么地方看到错误相关信息?
 
已邀请:

laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net

赞同来自:

把错误日志打印出来?

要回复问题请先登录注册