使用Nest第三套件來操作Elastic
https://nest.azurewebsites.net/nest/quick-start.html 官方說明
var node = new Uri(" http://192.168.19.14:9200/"); var settings = new ConnectionSettings(node); var client = new ElasticClient(settings);
client1.Index<string>("Index", "Type", model.ID, json);
沒有留言:
張貼留言