通过NEST获取默认回复?

时间:2015-07-06 13:32:02

标签: nest

当您直接导航到Elastic Search群集的根URL时,会显示如下系统摘要:

{
  "ok" : true,
  "status" : 200,
  "name" : "Ultra-Marine",
  "version" : {
    "number" : "0.19.0",
    "snapshot_build" : false
  },
  "tagline" : "You Know, for Search"
}

有没有办法通过NEST.ElasticClient实例获得此响应?

1 个答案:

答案 0 :(得分:2)

您可以致电client.RootNodeInfo()

来检索此信息