Exemplo n.º 1
0
        public async Task CreateClientAsync()
        {
            var elasticsearchConnectionFactory = new ElasticsearchConnectionFactory(new Settings {
                Nodes = new[] { "http://test.com" }
            });
            var client = await elasticsearchConnectionFactory.CreateClientAsync();

            Assert.NotNull(client);
        }
Exemplo n.º 2
0
        public void CreateClient()
        {
            var elasticsearchConnectionFactory = new ElasticsearchConnectionFactory(new Settings {
                Nodes = new[] { "http://test.com" }
            });
            var client = elasticsearchConnectionFactory.CreateClient();

            Assert.NotNull(client);
        }