Commit 2a722c00 authored by Bert Balcaen's avatar Bert Balcaen
Browse files

Fix Scout compat.

parent 8c14b3f1
......@@ -10,7 +10,7 @@
}
],
"require": {
"solarium/solarium": "^5.0|^6.0",
"solarium/solarium": "^6.0",
"laravel/scout": ">=9.0"
},
"autoload": {
......
......@@ -165,4 +165,18 @@ class SolrEngine extends Engine
$this->executeStatement($update);
}
public function lazyMap(Builder $builder, $results, $model)
{
// TODO: Implement lazyMap() method.
}
public function createIndex($name, array $options = [])
{
// TODO: Implement createIndex() method.
}
public function deleteIndex($name)
{
// TODO: Implement deleteIndex() method.
}
}
......@@ -17,7 +17,9 @@ class SolrServiceProvider extends ServiceProvider
public function register()
{
$this->app->singleton(Client::class, function () {
return new Client(config('solr'));
$adapter = new \Solarium\Core\Client\Adapter\Curl();
$eventDispatcher = new \Symfony\Component\EventDispatcher\EventDispatcher();
return new Client($adapter, $eventDispatcher, config('solr'));
});
}
......
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