How to make Laravel and Elasticsearch become friends
Ivan Babenko

Wonderful tutorial.

You’re using ES v2.4.4 in this tutorial.

What about the latest version of ES? (5.4)

I tried but I had issues with the last part of the tutorial, from more complex search queries. For example, for the query “App\Book::search(‘*’)->where(‘year’, ‘>’, 2010)->take(10)->get()”, It returns something like this:

Elasticsearch\Common\Exceptions\BadRequest400Exception with message ‘{“error”:{“root_cause”:[{“type”:”parsing_exception”,”reason”:”[match_all] query malformed, no start_object after query name”,”line”:1,”col”:39}],”type”:”parsing_exception”,”reason”:”[match_all] query malformed, no start_object after query name”,”line”:1,”col”:39},”status”:400}’

Thank you for your help!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.