Commit 7e93514d authored by Bert Balcaen's avatar Bert Balcaen
Browse files

Reverting changes regarding Scout 6 compatibility.

parent bc91e86d
......@@ -11,7 +11,7 @@
],
"require": {
"solarium/solarium": "^4.0",
"laravel/scout": "*"
"laravel/scout": "^4.0"
},
"autoload": {
"psr-4": {
......
This diff is collapsed.
......@@ -121,11 +121,10 @@ class SolrEngine extends Engine
* Map the given results to instances of the given model.
*
* @param \Solarium\QueryType\Select\Result\Result $results
* @param \Laravel\Scout\Builder $builder
* @param \Illuminate\Database\Eloquent\Model $model
* @return \Illuminate\Database\Eloquent\Collection
*/
public function map($builder, $results, $model)
public function map($results, $model)
{
$eloquentResults = [];
$modelClass = get_class($model);
......@@ -152,15 +151,4 @@ class SolrEngine extends Engine
{
return $results->getNumFound();
}
/**
* Flush all of the model's records from the engine.
*
* @param \Illuminate\Database\Eloquent\Model $model
* @return void
*/
public function flush($model)
{
//
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment