Skip to content

Commit

Permalink
Fixed: Connection pool example
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromdev committed Mar 2, 2017
1 parent 9890832 commit 4c6e1d4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,19 @@ Create a config/autoload/elasticsearch.global.php file with the below content:
<?php

return [
'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',
'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',
],
],
],
],
Expand Down

0 comments on commit 4c6e1d4

Please sign in to comment.