Questions tagged [laravel-scout]

A Laravel package that provides a simple, driver based solution for adding full-text search to models.

Laravel Scout provides a simple, driver based solution for adding full-text search to Laravel's Eloquent models. Using model observers, Scout will automatically keep your search indexes in sync with your Eloquent records.

Documentation is available at https://laravel.com/docs/5.4/scout

This is not a package which is included in the default installation of Laravel so it needs to be installed independently.

225 questions
0
votes
1 answer

Return normal result tnt search

I'm sorry if this is a newbie question. I am using tntseach a s my laravel-scout driver & serach sytem in my app. It is currently working well but the only problem is the format in which I recieve the results. If i search for "video" ie…
Constant
  • 574
  • 1
  • 5
  • 22
0
votes
1 answer

Numbers are formatted as string after scout:import Laravel

I had to use php artisan scout:import command, while I was developing the website in my local environment and everything worked perfectly. However, once I deployed my app and used the same command using ssh I got my model imported, but with int…
0
votes
2 answers

Remove Query Parameter from Laravel Scout Pagination Links()?

I'm using Laravel Scout to search for objects in my database, and need to have the results paginated, but Scout is automatically including a 'query' query term in the url in addition to the page number instead of just the page number. I'm using the…
0
votes
1 answer

Laravel elastic search not giving contains or like match

I wanted to have elasticsearch implemented for all my laravel search queries. I have the latest Laravel and latest elasticsearch installed using brew. curl http://localhost:9200/ gives, { "name" : "_SFvSGk", "cluster_name" :…
Anshad Vattapoyil
  • 23,145
  • 18
  • 84
  • 132
0
votes
0 answers

recursively add Models to Scout Laravel

I have three tables "Aktes" has Many "lvs" "lvs" has Many "Ms" "Ms" And i want to be able to search Ms->attribute in AkteController. I added lvs to Searchable Array: //Model Akte public function toSearchableArray() { $arr =…
jus_fabi
  • 349
  • 1
  • 4
  • 13
0
votes
1 answer

Call to undefined method Illuminate\Database\Query\Builder::makeAllSearchable() Laravel Scout Algolia

I am just starting to use Laravel Scout and Angolia driver. I had a problem with importing the model. At first, I import the App\Agency and it was imported. But when I try to import the rest of my model, it produces an error Call to undefined method…
boldsinas101
  • 300
  • 2
  • 5
  • 22
0
votes
1 answer

Laravel scout algolia non object

I'm creating a crud application using laravel and using scout with algolia to perform the search functions. However, when I perform scout:import "App\Majors" it throws a "trying to get property of non-object" error. Below is my model. class Major…
Damian Buttle
  • 75
  • 3
  • 11
0
votes
0 answers

Assert model was not made searchable

I'm building a system to manage some articles for my company using Laravel and Laravel Scout with Algolia as the search backend. One of the requirements states that whenever something in an article is changed, a backup is kept so we can prove that a…
Fabian Bettag
  • 799
  • 12
  • 22
0
votes
1 answer

toSearchableArray() in Laravel Scout overwrites owner

One user can create, edit and delete a model. All other users can update that model as well (by liking it). Now, when a user who is not the creator of an entry updates the model, the creator gets overwritten by the one who updated it. Basically,…
Andreas
  • 412
  • 6
  • 19
0
votes
0 answers

Can't call model method in toSearchableArray array when created via factory

I am trying to get a model factory to work, the main model Venue the following: Place which is a hasOne relation Type which has a belongsTo relation On top of that, place has a function called full_address, that returns a comma separated…
JaChNo
  • 1,493
  • 9
  • 28
  • 56
0
votes
1 answer

Laravel Scout Elastic Search - Index not found

I am facing a weird issue with elasticsearch. I am working on a Laravel project and need to integrate elastic search with it. I am using https://github.com/babenkoivan/scout-elasticsearch-driver along with Laravel Scout. Initially everything worked…
Alok
  • 63
  • 1
  • 10
0
votes
0 answers

pagination Laravel Scout search: SQLSTATE[42000]

hi and thanks for replies. i use : laravel-scout-mysql-driver to index and search mysql database. according to this set: 'strict'=>false the code: public function searchpages(Request $request){ $query= $request->get('query'); $adpgs=[]; …
Solivan
  • 695
  • 1
  • 8
  • 16
0
votes
0 answers

Algolia PHP SDK query returns "host unreachable"

I am using the Laravel Scout Algolia driver. I am up and running with the instant search using autocomplete.jquery.js on the front end. But on backend when I query in my controller Class::search($query)->get() it runs into a timeout. Hosts…
Ahmed Nawaz Khan
  • 1,451
  • 3
  • 20
  • 42
0
votes
0 answers

is this possible to relate two indexes in elasticsearch?

Iam new in elasticsearch.I integrated elasticsearch to my existing laravel app. I have two tables.parents and childrens. When each parent created ,it create a document with index name parent.same as childrens.., each childrens created creates…
Jasmel Pc
  • 515
  • 1
  • 5
  • 16
0
votes
1 answer

Algolia: How To Create a Refinement List with the following Data

Im trying to create a Refinement List with the following product data: Table 1: Product Table 2: Product Details. With Table Product, all the desired data is retrieved perfectly creating a json file very similar to algolia ecommerce best buy…
s_h
  • 1,476
  • 2
  • 27
  • 61