bcuff / elasticsearch-net-aws

Add-on to Elasticsearch.Net & NEST for using AWS's elasticsearch service.
Apache License 2.0
72 stars 27 forks source link

Any way to use this package with the latest version of Elasticsearch NEST? #62

Closed flgatormike closed 3 years ago

flgatormike commented 4 years ago

Not an issue, but a question.. I downloaded the package but it looks like the latest ElasticClient constructor has changed and the example shown here doesn't work with the latest NEST ElasticClient. Thanks!

flgatormike commented 4 years ago

I was able to make it work like this:

        var credentials = new BasicAWSCredentials("mykey", "mysecret");
        var connection = new AwsHttpConnection(credentials, RegionEndpoint.USEast1);
        var pool = new SingleNodeConnectionPool(new Uri(url));
        var settings = new ConnectionSettings(pool, connection);
        var client = new ElasticClient(settings);
bcuff commented 3 years ago

housekeeping