|
@@ -191,7 +191,8 @@ public class EsClientConfig {
|
|
|
return new BasePooledObjectFactory<>() {
|
|
|
@Override
|
|
|
public ElasticsearchClient create() {
|
|
|
- ElasticsearchTransport transport = getElasticsearchTransport(apikey, toHttpHost());
|
|
|
+// ElasticsearchTransport transport = getElasticsearchTransport(apikey, toHttpHost());
|
|
|
+ ElasticsearchTransport transport = getElasticsearchTransport(username, passwd, toHttpHost());
|
|
|
return new ElasticsearchClient(transport);
|
|
|
}
|
|
|
|