Closed tveyes-user closed 8 years ago
Sorry, the example is using the high-level NEST client. If you install the NEST package and add the right namespaces it should work. I'll try and update the examples to make that more clear in the future.
Thanks for the quick response!
When using Nest, does Elasticsearch.Net.Aws still require Elasticsearch.Net?
Thanks!
-D
Yes. But Nest also requires Elasticsearch.Net. It's part of the same project.
One last question:
At what point do you use the Amazon-provided URL for the service.
var httpConnection = new AwsHttpConnection(new AwsSettings
{
AccessKey = "My AWS access key",
SecretKey = "My AWS secret key",
Region = "us-east-1",
});
var pool = new SingleNodeConnectionPool(new Uri("http://my-search-url.us-east-1.es.amazonaws.com"));
var config = new ConnectionSettings(pool, httpConnection);
var client = new ElasticClient(config);
}
Is SingleNodeConnectionPool the correct place to configure the actual service endpoint?
Many thanks!
-D
Yes. That's it.
Many thanks!
Hello,
I'm trying to work out how to use this library to connect to Elastic Search running on Amazon's hosted AWS offering. However, it seems like that changes in Elasticsearch.Net have broken this example.
I'm using Elasticsearch.Net.Aws from Git, and I'm using ElasticSearch.Net 2.0.0.0 installed via NuGet.
Here's my code:
I'm getting the following type errors:
Has something changed? Am I tilting and windmills?
Thanks!
-D