16万
49万
管理员
Elasticsearch.Net.UnexpectedElasticsearchClientException:'无法将当前JSON对象(例如{“ name”:“ value”})反序列化为类型'System.Int64',因为该类型需要JSON基本值(例如,字符串,数字,布尔值,null)正确反序列化。要解决此错误,可以将JSON更改为JSON基本值(例如,字符串,数字,布尔值,null),或者更改反序列化类型,使其成为普通的.NET类型(例如,不像整数那样的原始类型,而不是集合类型) (例如数组或列表),可以从JSON对象反序列化。还可以将JsonObjectAttribute添加到类型中,以强制其从JSON对象反序列化。路径“ hits.total.value”,第1行,位置113。
I had the same issue, and it seems that NEST 6.6.0 library is not compatible with Elasticsearch 7.0. I had to update NEST to 7.0.0 (alpha at this point).
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|大润晟泽博客 ( 鲁ICP备17022854号-3 )
GMT+8, 2024-4-25 20:39 , Processed in 0.094623 second(s), 23 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.