Support the ongoing development of Laravel.io →
Database Eloquent Packages

This is a package to inject Elasticsearch functionality directly into Eloquent models. I've tried to make installation and using Larasearch as easy as possible. All you need are some Eloquent models and properly setup relationships. Larasearch will then inspect your relationships and build nested, indexable Elasticsearch documents. Ofcourse, you can also index just a single model.

It supports suggestions, highlighting, autocomplete, aggregations, zero-downtime reindexing, automatic updates on model updates etc.

The package and docs can be found at:

This is my first attempt at a non-trivial Laravel package so we'll see how it goes! Hopefully we can get some people on board to make this the definitive Laravel / Elasticsearch integration.

Happy searching!

Last updated 2 years ago.
0

i really appreciate your effort but its very different from elastic-search syntax and also very different from elastic-search official package https://github.com/elasticsearch/elasticsearch-php

elastic-search official package is very easy to understand and learn because of its similarity to elastic search

0

Iverberk, I really (really!) like your approach and the beautifuly way you integrated Elasticsearch, even with a different syntax.

In fact, IMHO you made it better because you develop a syntax in the Laravel way.

I am starting to use it today in a project I am involved and will bookmark this thread to post the results, so you can improve it even more!

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

iverberk iverberk Joined 16 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.