mailerlite / laravel-elasticsearch

An easy way to use the official Elastic Search client in your Laravel applications.
MIT License
916 stars 187 forks source link

Fix host assignment #124

Closed sete391 closed 3 years ago

sete391 commented 3 years ago

I try connecting to remote ES instance from Docker with this config:

AWS_ELASTICSEARCH_ENABLED=true ELASTICSEARCH_HOST=XXX.XXX.XXX.XXX ELASTICSEARCH_PORT=9200 ELASTICSEARCH_SCHEME=http ELASTICSEARCH_USER= ELASTICSEARCH_PASS=

I get an error because the request has not "host" key. The host is in the request, I don't need parse the url. With this change, I get a successfull connection.