mmanos / laravel-search

A search package for Laravel 5.
MIT License
352 stars 59 forks source link

Elasticsearch not working #39

Closed hetunandu closed 8 years ago

hetunandu commented 8 years ago

Error thrown when indexing:

Argument 1 passed to Elasticsearch\Client::__construct() must be an instance of Elasticsearch\Transport, array given

I have installed elasticsearch/elasticsearch (v2.1.3)

Please look into this matter

Denisbeder commented 8 years ago

I got the same error

dmyers commented 8 years ago

Can you try using an the 1.0 version of the ElasticSearch SDK? It's probably caused by the 2.0 version changes.

The package was developed with this Composer requirement in require-dev. Hopefully we can get it upgraded in the near future.

 "elasticsearch/elasticsearch": "1.0.*@dev",
kvzn commented 8 years ago

Has this issue been fixed with elasticsearch/elasticsearch 2.0 ?

francoism90 commented 8 years ago

I'm still getting this error, need to downgrade to 1.0.