C
C
chelkaz2017-03-06 15:28:42
Laravel
chelkaz, 2017-03-06 15:28:42

Laravel Scout + Elasticsearch working out of the box?

I have Elasticsearch installed, I used to use a third-party add-on Elasticquent https://github.com/elasticquent/Elasticquent
But it has not been updated for half a year. And I can’t find anywhere if it’s possible to work with Scout + Elasticsearch out of the box.
Lara has only about paid Algolia in the docks.
If Scout + Elasticsearch is possible, then how to add indexes and make search queries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sungat Arynov, 2017-03-09
@Ginkidayo

This package will help you.
Install it further according to the instructions in the Scout docs (how to add indexes and make queries). The documentation is simple:
This is an example of adding indexes
. This is an example of searching.

O
olivedev, 2019-07-24
@olivedev

You can use Scout to set up Elasticsearch in Laravel. To do this, you must install the Elasticsearch for PHP package and the Elasticsearch Eloquent package. Configure the Elastic driver in the Scout.php file and add the elasticsearch configuration to the same file. To do this, you must also have a model that supports full-text search.
Source: Laravel Autocomplete with Elasticsearch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question