【发布时间】:2021-03-22 02:40:37
【问题描述】:
- 我有 Elastic 和 Nest。
- 我有弹性日志。通过
.client.Query(...查询所有内容我没有任何问题,但是我在使用client.Get通过其__id 获取一个特定文档时遇到了问题。
我正在使用:
_el_client.Get<SystemLog>(id); // This does not work (_id = QUrLVXgB1uALlflB_-oF)
但是没有返回对象/记录......从Nest客户端查询具体弹性_id的方法是什么?
这是文档的开头(仅供参考)。
"_index": "webapi-development-2021-03",
"_type": "_doc",
"_id": "QUrLVXgB1uALlflB_-oF",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2021-03-21T18:18:55.2173785+01:00",
"level": "Information",
"messageTemplate": "{HostingRequestFinishedLog:l}",
// etc., etc.
感谢您的帮助...
【问题讨论】:
标签: elasticsearch nest