From 4c6e1d43615aaed5c615e9757e934b6216815503 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 1 Mar 2017 22:25:45 -0300 Subject: [PATCH] Fixed: Connection pool example --- README.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3270061..23f1427 100644 --- a/README.md +++ b/README.md @@ -72,17 +72,19 @@ Create a config/autoload/elasticsearch.global.php file with the below content: [ - 'default' => [ - 'hosts' => [ - 'http://localhost:9200', // string based - 'http://username:password@localhost:9200', // if you have an authentication layer - [ - 'scheme' => 'http', // associative array based - 'host' => 'localhost', - 'port' => 9200, - 'user' => 'username', // if you have an authentication layer - 'pass' => 'password', + 'elasticsearch' => [ + 'connection_pool' => [ + 'default' => [ + 'hosts' => [ + 'http://localhost:9200', // string based + 'http://username:password@localhost:9200', // if you have an authentication layer + [ + 'scheme' => 'http', // associative array based + 'host' => 'localhost', + 'port' => 9200, + 'user' => 'username', // if you have an authentication layer + 'pass' => 'password', + ], ], ], ],