Can you try putting the username/password in the URI that you are using to connect to your Jetty secured Elasticsearch index.
http://username:password@elasticsearchhost:9200
Since you are required to pass a Uri
object to the ConnectionSettings
for NEST you can set it like the following:
(Updated 4/25/14 - reflect correct usage with Uri
class.)
var uri = new Uri("http://username:password@elasticsearchhost");
var client = new ElasticClient(new ConnectionSettings(uri));