Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when use #50

Open
thantai574 opened this issue Oct 10, 2016 · 4 comments
Open

Error when use #50

thantai574 opened this issue Oct 10, 2016 · 4 comments

Comments

@thantai574
Copy link

Hi everyone ,
When i use :
\Search::insert(1, array(
'title' => 'My title',
'content' => 'The quick brown fox...',
'status' => 'published',
));
My app show error :
Argument 1 passed to Elasticsearch\Client::__construct() must be an instance of Elasticsearch\Transport, array given, called in ..../vendor/mmanos/laravel-search/src/Mmanos/Search/Index/Elasticsearch.php on line 38 and defined
Please help me !
Thanks

@dmyers
Copy link
Collaborator

dmyers commented Oct 11, 2016

What version of ElasticSearch client are you using?

@thantai574
Copy link
Author

i'm using ElasticSearch version 2.2 and laravel 5.2
thanks

@dmyers
Copy link
Collaborator

dmyers commented Oct 13, 2016

Currently only ES client 1.0 is supported, but the plan is to upgrade the package to use 2.0.

@iceHeartLuo
Copy link

Same on me.
We need the update,thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants