首页 新闻 会员 周边 捐助

使用nest创建es索引

0
[待解决问题]

public class People4
{
//public int Id { get; set; }
[Text(Name = "first_name", Norms = false)]
}

var settings = new ConnectionSettings(new Uri());
ElasticClient client = new ElasticClient(settings);
client.Indices.Create("index7", i => i.Map<People4>(m => m.AutoMap()));
这个写法不能创建索引

var settings = new ConnectionSettings(new Uri());
ElasticClient client = new ElasticClient(settings);
client.Indices.Create("index7");
这个写法创建索引

是什么原因啊

灬丶的主页 灬丶 | 初学一级 | 园豆:9
提问于:2022-11-20 16:23
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册