diff --git a/Config/module.xml b/Config/module.xml
index 999364a..ab8a548 100644
--- a/Config/module.xml
+++ b/Config/module.xml
@@ -20,7 +20,7 @@
en_US
fr_FR
- 0.0.10
+ 0.0.11
Vincent Lopes-Vicente
diff --git a/ElasticProduct.php b/ElasticProduct.php
index 6c228c0..8cd00b3 100644
--- a/ElasticProduct.php
+++ b/ElasticProduct.php
@@ -36,17 +36,8 @@ public function postActivation(ConnectionInterface $con = null)
public static function getElasticSearchClient()
{
- $hosts = [
- [
- 'host' => self::getConfigValue('host', 'localhost'),
- 'port' => self::getConfigValue('port', '9200'),
- 'user' => self::getConfigValue('username'),
- 'pass' => self::getConfigValue('password')
- ]
- ];
-
$client = ClientBuilder::create()
- ->setHosts($hosts)
+ ->setHosts(self::getConfigValue('host', 'http://localhost:9200'))
->build();
return $client;
diff --git a/templates/backOffice/default/elastic-product/configuration.html b/templates/backOffice/default/elastic-product/configuration.html
index a2e35a8..66fb6bd 100644
--- a/templates/backOffice/default/elastic-product/configuration.html
+++ b/templates/backOffice/default/elastic-product/configuration.html
@@ -30,9 +30,6 @@
{/form_field}
{render_form_field form=$form field="host"}
- {render_form_field form=$form field="port"}
- {render_form_field form=$form field="username"}
- {render_form_field form=$form field="password"}
{render_form_field form=$form field="index_prefix"}