Skip to content

Commit e81a0f6

Browse files
committed
test: 调整测试连接
1 parent fa1660c commit e81a0f6

File tree

1 file changed

+8
-2
lines changed
  • samples/Bing.Elasticsearch.WinformSample

1 file changed

+8
-2
lines changed

samples/Bing.Elasticsearch.WinformSample/Program.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@ static IServiceProvider GetServiceProvider()
2727
var services = new ServiceCollection();
2828
services.AddElasticsearch(o =>
2929
{
30+
//o.Urls = new List<string>
31+
//{
32+
// "http://10.186.132.138:9200"
33+
//};
34+
//o.DefaultIndex = "bing_es_sample";
3035
o.Urls = new List<string>
3136
{
32-
"http://10.186.132.138:9200"
37+
"http://10.186.135.120:9200",
38+
"http://10.186.135.125:9200",
39+
"http://10.186.135.135:9200",
3340
};
34-
o.DefaultIndex = "bing_es_sample";
3541
});
3642

3743
services.AddSingleton(typeof(Form1));

0 commit comments

Comments
 (0)