Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question